public interface AudioEqualizer
Modifier and Type | Field and Description |
---|---|
static int |
MAX_NUM_BANDS
The maximum number of bands the equalizer can control.
|
Modifier and Type | Method and Description |
---|---|
EqualizerBand |
addBand(double centerFrequency,
double bandwidth,
double gain)
Adds a band to the equalizer.
|
boolean |
getEnabled()
Returns whether equalization was enabled or not.
|
boolean |
removeBand(double centerFrequency)
Removes an equalizer band with the specified center frequency.
|
void |
setEnabled(boolean bEnable)
Turns on or off audio equalization.
|
static final int MAX_NUM_BANDS
boolean getEnabled()
void setEnabled(boolean bEnable)
bEnable
- boolean valueEqualizerBand addBand(double centerFrequency, double bandwidth, double gain)
centerFrequency
- bandwidth
- gain
- centerFrequency
already exists.java.lang.IllegalArgumentException
- if centerFrequency
or bandwidth
are < 0.0.boolean removeBand(double centerFrequency)
centerFrequency
- java.lang.IllegalArgumentException
- if centerFrequency
is
negative.