android.media.audiofx
Class AudioEffect

java.lang.Object
  extended by android.media.audiofx.AudioEffect
Direct Known Subclasses:
BassBoost, EnvironmentalReverb, Equalizer, PresetReverb, Virtualizer

public class AudioEffect
extends Object


Nested Class Summary
static class AudioEffect.Descriptor
           
static interface AudioEffect.OnControlStatusChangeListener
           
static interface AudioEffect.OnEnableStatusChangeListener
           
 
Field Summary
static String ACTION_CLOSE_AUDIO_EFFECT_CONTROL_SESSION
           
static String ACTION_DISPLAY_AUDIO_EFFECT_CONTROL_PANEL
           
static String ACTION_OPEN_AUDIO_EFFECT_CONTROL_SESSION
           
static int ALREADY_EXISTS
           
static int CONTENT_TYPE_GAME
           
static int CONTENT_TYPE_MOVIE
           
static int CONTENT_TYPE_MUSIC
           
static int CONTENT_TYPE_VOICE
           
static String EFFECT_AUXILIARY
           
static String EFFECT_INSERT
           
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 String EXTRA_AUDIO_SESSION
           
static String EXTRA_CONTENT_TYPE
           
static String EXTRA_PACKAGE_NAME
           
static int SUCCESS
           
 
Method Summary
protected  void finalize()
           
 AudioEffect.Descriptor getDescriptor()
           
 boolean getEnabled()
           
 int getId()
           
 boolean hasControl()
           
static AudioEffect.Descriptor[] queryEffects()
           
 void release()
           
 void setControlStatusListener(AudioEffect.OnControlStatusChangeListener listener)
           
 int setEnabled(boolean enabled)
           
 void setEnableStatusListener(AudioEffect.OnEnableStatusChangeListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

EFFECT_INSERT

public static final String EFFECT_INSERT
See Also:
Constant Field Values

EFFECT_AUXILIARY

public static final String EFFECT_AUXILIARY
See Also:
Constant Field Values

ACTION_DISPLAY_AUDIO_EFFECT_CONTROL_PANEL

public static final String ACTION_DISPLAY_AUDIO_EFFECT_CONTROL_PANEL
See Also:
Constant Field Values

ACTION_OPEN_AUDIO_EFFECT_CONTROL_SESSION

public static final String ACTION_OPEN_AUDIO_EFFECT_CONTROL_SESSION
See Also:
Constant Field Values

ACTION_CLOSE_AUDIO_EFFECT_CONTROL_SESSION

public static final String ACTION_CLOSE_AUDIO_EFFECT_CONTROL_SESSION
See Also:
Constant Field Values

EXTRA_AUDIO_SESSION

public static final String EXTRA_AUDIO_SESSION
See Also:
Constant Field Values

EXTRA_PACKAGE_NAME

public static final String EXTRA_PACKAGE_NAME
See Also:
Constant Field Values

EXTRA_CONTENT_TYPE

public static final String EXTRA_CONTENT_TYPE
See Also:
Constant Field Values

CONTENT_TYPE_MUSIC

public static final int CONTENT_TYPE_MUSIC
See Also:
Constant Field Values

CONTENT_TYPE_MOVIE

public static final int CONTENT_TYPE_MOVIE
See Also:
Constant Field Values

CONTENT_TYPE_GAME

public static final int CONTENT_TYPE_GAME
See Also:
Constant Field Values

CONTENT_TYPE_VOICE

public static final int CONTENT_TYPE_VOICE
See Also:
Constant Field Values
Method Detail

release

public void release()

finalize

protected void finalize()
Overrides:
finalize in class Object

getDescriptor

public AudioEffect.Descriptor getDescriptor()
                                     throws IllegalStateException
Throws:
IllegalStateException

queryEffects

public static AudioEffect.Descriptor[] queryEffects()

setEnabled

public int setEnabled(boolean enabled)
               throws IllegalStateException
Throws:
IllegalStateException

getId

public int getId()
          throws IllegalStateException
Throws:
IllegalStateException

getEnabled

public boolean getEnabled()
                   throws IllegalStateException
Throws:
IllegalStateException

hasControl

public boolean hasControl()
                   throws IllegalStateException
Throws:
IllegalStateException

setEnableStatusListener

public void setEnableStatusListener(AudioEffect.OnEnableStatusChangeListener listener)

setControlStatusListener

public void setControlStatusListener(AudioEffect.OnControlStatusChangeListener listener)


Copyright © 2008-2010. All Rights Reserved.