android.media.audiofx
Class Visualizer
java.lang.Object
android.media.audiofx.Visualizer
public class Visualizer
- extends Object
STATE_UNINITIALIZED
public static final int STATE_UNINITIALIZED
- See Also:
- Constant Field Values
STATE_INITIALIZED
public static final int STATE_INITIALIZED
- See Also:
- Constant Field Values
STATE_ENABLED
public static final int STATE_ENABLED
- See Also:
- Constant Field Values
SUCCESS
public static final int SUCCESS
- See Also:
- Constant Field Values
ERROR
public static final int ERROR
- See Also:
- Constant Field Values
ALREADY_EXISTS
public static final int ALREADY_EXISTS
- See Also:
- Constant Field Values
ERROR_NO_INIT
public static final int ERROR_NO_INIT
- See Also:
- Constant Field Values
ERROR_BAD_VALUE
public static final int ERROR_BAD_VALUE
- See Also:
- Constant Field Values
ERROR_INVALID_OPERATION
public static final int ERROR_INVALID_OPERATION
- See Also:
- Constant Field Values
ERROR_NO_MEMORY
public static final int ERROR_NO_MEMORY
- See Also:
- Constant Field Values
ERROR_DEAD_OBJECT
public static final int ERROR_DEAD_OBJECT
- See Also:
- Constant Field Values
Visualizer
public Visualizer(int audioSession)
throws UnsupportedOperationException,
RuntimeException
- Throws:
UnsupportedOperationException
RuntimeException
release
public void release()
finalize
protected void finalize()
- Overrides:
finalize
in class Object
setEnabled
public int setEnabled(boolean enabled)
throws IllegalStateException
- Throws:
IllegalStateException
getEnabled
public boolean getEnabled()
getCaptureSizeRange
public static int[] getCaptureSizeRange()
getMaxCaptureRate
public static int getMaxCaptureRate()
setCaptureSize
public int setCaptureSize(int size)
throws IllegalStateException
- Throws:
IllegalStateException
getCaptureSize
public int getCaptureSize()
throws IllegalStateException
- Throws:
IllegalStateException
getSamplingRate
public int getSamplingRate()
throws IllegalStateException
- Throws:
IllegalStateException
getWaveForm
public int getWaveForm(byte[] waveform)
throws IllegalStateException
- Throws:
IllegalStateException
getFft
public int getFft(byte[] fft)
throws IllegalStateException
- Throws:
IllegalStateException
setDataCaptureListener
public int setDataCaptureListener(Visualizer.OnDataCaptureListener listener,
int rate,
boolean waveform,
boolean fft)
Copyright © 2008-2012. All Rights Reserved.