Lines Matching refs:Visualizer

27  * The Visualizer class enables application to retrieve part of the currently playing audio for
53 * <p>Before capturing data, the Visualizer must be enabled by calling the
55 * When data capture is not needed any more, the Visualizer should be disabled.
56 * <p>It is good practice to call the {@link #release()} method when the Visualizer is not used
57 * anymore to free up native resources associated to the Visualizer instance.
58 * <p>Creating a Visualizer on the output mix (audio session 0) requires permission
60 * <p>The Visualizer class can also be used to perform measurements on the audio being played back.
67 public class Visualizer {
74 private final static String TAG = "Visualizer-JAVA";
77 * State of a Visualizer object that was not successfully initialized upon creation
81 * State of a Visualizer object that is ready to be used.
85 * State of a Visualizer object that is active.
92 * data. This is the default Visualizer mode, and is suitable for music visualization.
157 * Indicates the state of the Visualizer instance
165 * System wide unique Identifier of the visualizer engine used by this Visualizer instance
197 * same audio session. Otherwise, the Visualizer will apply to the output mix.
203 public Visualizer(int audioSession)
210 int result = native_setup(new WeakReference<Visualizer>(this), audioSession, id,
213 Log.e(TAG, "Error code "+result+" when initializing Visualizer.");
218 throw (new RuntimeException("Cannot initialize Visualizer engine, error: "
232 * Releases the native Visualizer resources. It is a good practice to release the
305 * This method must not be called when the Visualizer is enabled.
426 * <p>This method must be called when the Visualizer is enabled.
444 * <p>This method must be called when the Visualizer is enabled.
499 * {@link Visualizer#MEASUREMENT_MODE_PEAK_RMS} measurement mode.
514 * Sets the peak and RMS fields of the supplied {@link Visualizer.MeasurementPeakRms} to the
516 * @param measurement a non-null {@link Visualizer.MeasurementPeakRms} instance to store
540 * The OnDataCaptureListener interface defines methods called by the Visualizer to periodically
551 * @param visualizer Visualizer object on which the listener is registered.
555 void onWaveFormDataCapture(Visualizer visualizer, byte[] waveform, int samplingRate);
570 * @param visualizer Visualizer object on which the listener is registered.
583 void onFftDataCapture(Visualizer visualizer, byte[] fft, int samplingRate);
629 * The OnServerDiedListener interface defines a method called by the Visualizer to indicate that
630 * the connection to the native media server has been broken and that the Visualizer object will
641 * connection from the {@link #Visualizer} to the media server will be broken. Data capture
642 * callbacks will stop happening, and client initiated calls to the {@link #Visualizer}
668 private Visualizer mVisualizer;
670 public NativeEventHandler(Visualizer v, Looper looper) {
777 Visualizer visu = (Visualizer)((WeakReference)effect_ref).get();