com.h6ah4i.android.media.audiofx.IHQVisualizer.OnDataCaptureListener |
The OnDataCaptureListener interface defines methods called by the
Visualizer to periodically update the audio visualization capture. The
client application can implement this interface and register the listener
with the
setDataCaptureListener(OnDataCaptureListener, int, boolean, boolean)
method.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
onFftDataCapture(IHQVisualizer visualizer, float[] fft, int numChannels, int samplingRate)
Method called when a new frequency capture is available.
| ||||||||||
abstract void |
onWaveFormDataCapture(IHQVisualizer visualizer, float[] waveform, int numChannels, int samplingRate)
Method called when a new waveform capture is available.
|
Method called when a new frequency capture is available.
Data in the fft buffer is valid only within the scope of the callback. Applications which needs access to the fft data after returning from the callback should make a copy of the data instead of holding a reference.
visualizer | Visualizer object on which the listener is registered. |
---|---|
fft | array of bytes containing the frequency representation. |
numChannels | number of channels. |
samplingRate | sampling rate of the audio visualized. |
Method called when a new waveform capture is available.
Data in the waveform buffer is valid only within the scope of the callback. Applications which needs access to the waveform data after returning from the callback should make a copy of the data instead of holding a reference.
visualizer | Visualizer object on which the listener is registered. |
---|---|
waveform | array of bytes containing the waveform representation. |
numChannels | number of channels. |
samplingRate | sampling rate of the audio visualized. |