public class Equalizer extends AudioEffect
| Modifier and Type | Class and Description |
|---|---|
static interface |
Equalizer.OnParameterChangeListener |
static class |
Equalizer.Settings |
AudioEffect.Descriptor, AudioEffect.OnControlStatusChangeListener, AudioEffect.OnEnableStatusChangeListener| Modifier and Type | Field and Description |
|---|---|
static int |
PARAM_BAND_FREQ_RANGE |
static int |
PARAM_BAND_LEVEL |
static int |
PARAM_CENTER_FREQ |
static int |
PARAM_CURRENT_PRESET |
static int |
PARAM_GET_BAND |
static int |
PARAM_GET_NUM_OF_PRESETS |
static int |
PARAM_GET_PRESET_NAME |
static int |
PARAM_LEVEL_RANGE |
static int |
PARAM_NUM_BANDS |
static int |
PARAM_STRING_SIZE_MAX |
ACTION_CLOSE_AUDIO_EFFECT_CONTROL_SESSION, ACTION_DISPLAY_AUDIO_EFFECT_CONTROL_PANEL, ACTION_OPEN_AUDIO_EFFECT_CONTROL_SESSION, ALREADY_EXISTS, CONTENT_TYPE_GAME, CONTENT_TYPE_MOVIE, CONTENT_TYPE_MUSIC, CONTENT_TYPE_VOICE, EFFECT_AUXILIARY, EFFECT_INSERT, ERROR, ERROR_BAD_VALUE, ERROR_DEAD_OBJECT, ERROR_INVALID_OPERATION, ERROR_NO_INIT, ERROR_NO_MEMORY, EXTRA_AUDIO_SESSION, EXTRA_CONTENT_TYPE, EXTRA_PACKAGE_NAME, SUCCESS| Constructor and Description |
|---|
Equalizer(int priority,
int audioSession) |
| Modifier and Type | Method and Description |
|---|---|
short |
getBand(int frequency) |
int[] |
getBandFreqRange(short band) |
short |
getBandLevel(short band) |
short[] |
getBandLevelRange() |
int |
getCenterFreq(short band) |
short |
getCurrentPreset() |
short |
getNumberOfBands() |
short |
getNumberOfPresets() |
String |
getPresetName(short preset) |
Equalizer.Settings |
getProperties() |
void |
setBandLevel(short band,
short level) |
void |
setParameterListener(Equalizer.OnParameterChangeListener listener) |
void |
setProperties(Equalizer.Settings settings) |
void |
usePreset(short preset) |
finalize, getDescriptor, getEnabled, getId, hasControl, queryEffects, release, setControlStatusListener, setEnabled, setEnableStatusListenerpublic static final int PARAM_NUM_BANDS
public static final int PARAM_LEVEL_RANGE
public static final int PARAM_BAND_LEVEL
public static final int PARAM_CENTER_FREQ
public static final int PARAM_BAND_FREQ_RANGE
public static final int PARAM_GET_BAND
public static final int PARAM_CURRENT_PRESET
public static final int PARAM_GET_NUM_OF_PRESETS
public static final int PARAM_GET_PRESET_NAME
public static final int PARAM_STRING_SIZE_MAX
public Equalizer(int priority,
int audioSession)
throws IllegalStateException,
IllegalArgumentException,
UnsupportedOperationException,
RuntimeException
public short getNumberOfBands()
throws IllegalStateException,
IllegalArgumentException,
UnsupportedOperationException
public short[] getBandLevelRange()
throws IllegalStateException,
IllegalArgumentException,
UnsupportedOperationException
public void setBandLevel(short band,
short level)
throws IllegalStateException,
IllegalArgumentException,
UnsupportedOperationException
public short getBandLevel(short band)
throws IllegalStateException,
IllegalArgumentException,
UnsupportedOperationException
public int getCenterFreq(short band)
throws IllegalStateException,
IllegalArgumentException,
UnsupportedOperationException
public int[] getBandFreqRange(short band)
throws IllegalStateException,
IllegalArgumentException,
UnsupportedOperationException
public short getBand(int frequency)
throws IllegalStateException,
IllegalArgumentException,
UnsupportedOperationException
public short getCurrentPreset()
throws IllegalStateException,
IllegalArgumentException,
UnsupportedOperationException
public void usePreset(short preset)
throws IllegalStateException,
IllegalArgumentException,
UnsupportedOperationException
public short getNumberOfPresets()
throws IllegalStateException,
IllegalArgumentException,
UnsupportedOperationException
public String getPresetName(short preset)
public void setParameterListener(Equalizer.OnParameterChangeListener listener)
public Equalizer.Settings getProperties() throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException
public void setProperties(Equalizer.Settings settings) throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException
Copyright © 2008-2013. All Rights Reserved.