com.h6ah4i.android.media.audiofx.IEqualizer |
Known Indirect Subclasses |
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
interface | IEqualizer.OnParameterChangeListener | The OnParameterChangeListener interface defines a method called by the Equalizer when a parameter value has changed. | |||||||||
class | IEqualizer.Settings | The Settings class regroups all equalizer parameters. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | PARAM_BAND_FREQ_RANGE | Band frequency range. | |||||||||
int | PARAM_BAND_LEVEL | Band level. | |||||||||
int | PARAM_CENTER_FREQ | Band center frequency. | |||||||||
int | PARAM_CURRENT_PRESET | Current preset. | |||||||||
int | PARAM_GET_BAND | Band for a given frequency. | |||||||||
int | PARAM_GET_NUM_OF_PRESETS | Request number of presets. | |||||||||
int | PARAM_GET_PRESET_NAME | Request preset name. | |||||||||
int | PARAM_LEVEL_RANGE | Band level range. | |||||||||
int | PARAM_NUM_BANDS | Number of bands. | |||||||||
int | PARAM_STRING_SIZE_MAX | Maximum size for preset name | |||||||||
short | PRESET_UNDEFINED |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.h6ah4i.android.media.audiofx.IAudioEffect
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract short |
getBand(int frequency)
Gets the band that has the most effect on the given frequency.
| ||||||||||
abstract int[] | getBandFreqRange(short band) | ||||||||||
abstract short |
getBandLevel(short band)
Gets the gain set for the given equalizer band.
| ||||||||||
abstract short[] |
getBandLevelRange()
Gets the level range for use by
setBandLevel(short, short) . | ||||||||||
abstract int |
getCenterFreq(short band)
Gets the center frequency of the given band.
| ||||||||||
abstract short |
getCurrentPreset()
Gets current preset.
| ||||||||||
abstract short |
getNumberOfBands()
Gets the number of frequency bands supported by the Equalizer engine.
| ||||||||||
abstract short |
getNumberOfPresets()
Gets the total number of presets the equalizer supports.
| ||||||||||
abstract String |
getPresetName(short preset)
Gets the preset name based on the index.
| ||||||||||
abstract IEqualizer.Settings |
getProperties()
Gets the equalizer properties.
| ||||||||||
abstract void |
setBandLevel(short band, short level)
Sets the given equalizer band to the given gain value.
| ||||||||||
abstract void |
setParameterListener(IEqualizer.OnParameterChangeListener listener)
Registers an OnParameterChangeListener interface.
| ||||||||||
abstract void |
setProperties(IEqualizer.Settings settings)
Sets the equalizer properties.
| ||||||||||
abstract void |
usePreset(short preset)
Sets the equalizer according to the given preset.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.h6ah4i.android.media.IReleasable
| |||||||||||
From interface
com.h6ah4i.android.media.audiofx.IAudioEffect
|
Band frequency range. Parameter ID for android.media.audiofx.Equalizer.OnParameterChangeListener
Band level. Parameter ID for OnParameterChangeListener
Band center frequency. Parameter ID for OnParameterChangeListener
Current preset. Parameter ID for OnParameterChangeListener
Band for a given frequency. Parameter ID for OnParameterChangeListener
Request number of presets. Parameter ID for OnParameterChangeListener
Request preset name. Parameter ID for OnParameterChangeListener
Band level range. Parameter ID for OnParameterChangeListener
Number of bands. Parameter ID for OnParameterChangeListener
Maximum size for preset name
Gets the band that has the most effect on the given frequency.
frequency | frequency in milliHertz which is to be equalized via the returned band. |
---|
IllegalStateException | |
IllegalArgumentException | |
UnsupportedOperationException | |
IllegalArgumentException | |
IllegalStateException |
IllegalArgumentException | |
---|---|
IllegalStateException | |
UnsupportedOperationException |
Gets the gain set for the given equalizer band.
band | frequency band whose gain is requested. The numbering of the bands starts from 0 and ends at (number of bands - 1). |
---|
IllegalStateException | |
IllegalArgumentException | |
UnsupportedOperationException | |
IllegalArgumentException | |
IllegalStateException |
Gets the level range for use by setBandLevel(short, short)
. The
level is expressed in milliBel.
IllegalStateException | |
IllegalArgumentException | |
UnsupportedOperationException | |
IllegalArgumentException | |
IllegalStateException |
Gets the center frequency of the given band.
band | frequency band whose center frequency is requested. The numbering of the bands starts from 0 and ends at (number of bands - 1). |
---|
IllegalStateException | |
IllegalArgumentException | |
UnsupportedOperationException | |
IllegalArgumentException | |
IllegalStateException |
Gets current preset.
IllegalStateException | |
IllegalArgumentException | |
UnsupportedOperationException | |
IllegalArgumentException | |
IllegalStateException |
Gets the number of frequency bands supported by the Equalizer engine.
IllegalStateException | |
IllegalArgumentException | |
UnsupportedOperationException | |
IllegalArgumentException | |
IllegalStateException |
Gets the total number of presets the equalizer supports. The presets will have indices [0, number of presets-1].
IllegalStateException | |
IllegalArgumentException | |
UnsupportedOperationException | |
IllegalArgumentException | |
IllegalStateException |
Gets the preset name based on the index.
preset | index of the preset. The valid range is [0, number of presets-1]. |
---|
IllegalStateException | |
IllegalArgumentException | |
UnsupportedOperationException | |
IllegalArgumentException | |
IllegalStateException |
Gets the equalizer properties. This method is useful when a snapshot of current equalizer settings must be saved by the application.
IllegalStateException | |
IllegalArgumentException | |
UnsupportedOperationException | |
IllegalArgumentException | |
IllegalStateException |
Sets the given equalizer band to the given gain value.
band | frequency band that will have the new gain. The numbering of the bands starts from 0 and ends at (number of bands - 1). |
---|---|
level | new gain in millibels that will be set to the given band. getBandLevelRange() will define the maximum and minimum values. |
IllegalStateException | |
IllegalArgumentException | |
UnsupportedOperationException | |
IllegalArgumentException | |
IllegalStateException | |
UnsupportedOperationException |
Registers an OnParameterChangeListener interface.
listener | OnParameterChangeListener interface registered |
---|
Sets the equalizer properties. This method is useful when equalizer settings have to be applied from a previous backup.
settings | an IEqualizer.Settings object containing the properties to apply |
---|
IllegalStateException | |
IllegalArgumentException | |
UnsupportedOperationException | |
IllegalArgumentException | |
IllegalStateException |
Sets the equalizer according to the given preset.
preset | new preset that will be taken into use. The valid range is [0, number of presets-1]. |
---|
IllegalStateException | |
IllegalArgumentException | |
UnsupportedOperationException | |
IllegalArgumentException | |
IllegalStateException | |
UnsupportedOperationException |