android.media.audiofx
Class Visualizer

java.lang.Object
  extended by android.media.audiofx.Visualizer

public class Visualizer
extends Object


Nested Class Summary
static interface Visualizer.OnDataCaptureListener
           
 
Field Summary
static int ALREADY_EXISTS
           
static int ERROR
           
static int ERROR_BAD_VALUE
           
static int ERROR_DEAD_OBJECT
           
static int ERROR_INVALID_OPERATION
           
static int ERROR_NO_INIT
           
static int ERROR_NO_MEMORY
           
static int SCALING_MODE_AS_PLAYED
           
static int SCALING_MODE_NORMALIZED
           
static int STATE_ENABLED
           
static int STATE_INITIALIZED
           
static int STATE_UNINITIALIZED
           
static int SUCCESS
           
 
Constructor Summary
Visualizer(int audioSession)
           
 
Method Summary
protected  void finalize()
           
 int getCaptureSize()
           
static int[] getCaptureSizeRange()
           
 boolean getEnabled()
           
 int getFft(byte[] fft)
           
static int getMaxCaptureRate()
           
 int getSamplingRate()
           
 int getScalingMode()
           
 int getWaveForm(byte[] waveform)
           
 void release()
           
 int setCaptureSize(int size)
           
 int setDataCaptureListener(Visualizer.OnDataCaptureListener listener, int rate, boolean waveform, boolean fft)
           
 int setEnabled(boolean enabled)
           
 int setScalingMode(int mode)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

SCALING_MODE_NORMALIZED

public static final int SCALING_MODE_NORMALIZED
See Also:
Constant Field Values

SCALING_MODE_AS_PLAYED

public static final int SCALING_MODE_AS_PLAYED
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
Constructor Detail

Visualizer

public Visualizer(int audioSession)
           throws UnsupportedOperationException,
                  RuntimeException
Throws:
UnsupportedOperationException
RuntimeException
Method Detail

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

setScalingMode

public int setScalingMode(int mode)
                   throws IllegalStateException
Throws:
IllegalStateException

getScalingMode

public int getScalingMode()
                   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.