Package: android.hardware.audio.effect@2.0

IEqualizerEffect

interface IEqualizerEffect extends IEffect

Properties

AllProperties

struct AllProperties {uint16_t curPreset; vec bandLevels}
Details
Members
curPreset
bandLevels

Methods

getNumBands

getNumBands ()
generates (Result retval, uint16_t numBands)

Gets the number of frequency bands that the equalizer supports.

Details
Generates
retval
numBands

getLevelRange

getLevelRange ()
generates (Result retval, int16_t minLevel, int16_t maxLevel)

Returns the minimum and maximum band levels supported.

Details
Generates
retval
minLevel
maxLevel

setBandLevel

setBandLevel (uint16_t band, int16_t level)
generates (Result retval)

Sets the gain for the given equalizer band.

Details
Parameters
band
level
Generates
retval

getBandLevel

getBandLevel (uint16_t band)
generates (Result retval, int16_t level)

Gets the gain for the given equalizer band.

Details
Parameters
band
Generates
retval
level

getBandCenterFrequency

getBandCenterFrequency (uint16_t band)
generates (Result retval, uint32_t centerFreqmHz)

Gets the center frequency of the given band, in milliHertz.

Details
Parameters
band
Generates
retval
centerFreqmHz

getBandFrequencyRange

getBandFrequencyRange (uint16_t band)
generates (Result retval, uint32_t minFreqmHz, uint32_t maxFreqmHz)

Gets the frequency range of the given frequency band, in milliHertz.

Details
Parameters
band
Generates
retval
minFreqmHz
maxFreqmHz

getBandForFrequency

getBandForFrequency (uint32_t freqmHz)
generates (Result retval, uint16_t band)

Gets the band that has the most effect on the given frequency in milliHertz.

Details
Parameters
freqmHz
Generates
retval
band

getPresetNames

getPresetNames ()
generates (Result retval, vec<string> names)

Gets the names of all presets the equalizer supports.

Details
Generates
retval
names

setCurrentPreset

setCurrentPreset (uint16_t preset)
generates (Result retval)

Sets the current preset using the index of the preset in the names vector returned via 'getPresetNames'.

Details
Parameters
preset
Generates
retval

getCurrentPreset

getCurrentPreset ()
generates (Result retval, uint16_t preset)

Gets the current preset.

Details
Generates
retval
preset

setAllProperties

setAllProperties (AllProperties properties)
generates (Result retval)

Sets all properties at once.

Details
Parameters
properties
Generates
retval

getAllProperties

getAllProperties ()
generates (Result retval, AllProperties properties)

Gets all properties at once.

Details
Generates
retval
properties