@Implements(value=android.media.audiofx.Visualizer.class, minSdk=9) public class ShadowVisualizer extends Object
Visualizer
class.Modifier and Type | Class | Description |
---|---|---|
static interface |
ShadowVisualizer.VisualizerSource |
Provides underlying data for the
ShadowVisualizer . |
Constructor | Description |
---|---|
ShadowVisualizer() |
Modifier and Type | Method | Description |
---|---|---|
protected int |
native_getCaptureSize() |
|
protected boolean |
native_getEnabled() |
|
protected int |
native_getFft(byte[] fft) |
|
protected int |
native_getSamplingRate() |
|
protected int |
native_getWaveForm(byte[] waveform) |
|
protected int |
native_setCaptureSize(int size) |
|
protected int |
native_setEnabled(boolean enabled) |
|
protected int |
setDataCaptureListener(Visualizer.OnDataCaptureListener listener,
int rate,
boolean waveform,
boolean fft) |
|
void |
setSource(ShadowVisualizer.VisualizerSource source) |
|
void |
triggerDataCapture() |
Trigger calls to the existing
Visualizer.OnDataCaptureListener . |
public void setSource(ShadowVisualizer.VisualizerSource source)
@Implementation(minSdk=9) protected int setDataCaptureListener(Visualizer.OnDataCaptureListener listener, int rate, boolean waveform, boolean fft)
@Implementation(minSdk=9) protected int native_getSamplingRate()
@Implementation(minSdk=9) protected int native_getWaveForm(byte[] waveform)
@Implementation(minSdk=9) protected int native_getFft(byte[] fft)
@Implementation(minSdk=9) protected boolean native_getEnabled()
@Implementation(minSdk=9) protected int native_setCaptureSize(int size)
@Implementation(minSdk=9) protected int native_getCaptureSize()
@Implementation(minSdk=9) protected int native_setEnabled(boolean enabled)
public void triggerDataCapture()
Visualizer.OnDataCaptureListener
.
This is a no-op if the listener has not been set.