public final class Equalizer
extends java.lang.Object
Equalizer
class can be used to specify
equalization settings for the MPEG audio decoder.
The equalizer consists of 32 band-pass filters. Each band of the equalizer can take on a fractional value between -1.0 and +1.0. At -1.0, the input signal is attenuated by 6dB, at +1.0 the signal is amplified by 6dB.
Decoder
Modifier and Type | Class and Description |
---|---|
static class |
Equalizer.EQFunction |
Modifier and Type | Field and Description |
---|---|
static float |
BAND_NOT_PRESENT
Equalizer setting to denote that a given band will not be
present in the output signal.
|
static Equalizer |
PASS_THRU_EQ |
Constructor and Description |
---|
Equalizer()
Creates a new
Equalizer instance. |
Equalizer(Equalizer.EQFunction eq) |
Equalizer(float[] settings) |
Modifier and Type | Method and Description |
---|---|
float |
getBand(int band)
Retrieves the eq setting for a given band.
|
int |
getBandCount()
Retrieves the number of bands present in this equalizer.
|
void |
reset()
Sets all bands to 0.0
|
float |
setBand(int band,
float neweq) |
void |
setFrom(Equalizer.EQFunction eq) |
void |
setFrom(Equalizer eq)
Sets the bands of this equalizer to the value the bands of
another equalizer.
|
void |
setFrom(float[] eq) |
public static final float BAND_NOT_PRESENT
public static final Equalizer PASS_THRU_EQ
public Equalizer()
Equalizer
instance.public Equalizer(float[] settings)
public Equalizer(Equalizer.EQFunction eq)
public void setFrom(float[] eq)
public void setFrom(Equalizer.EQFunction eq)
public void setFrom(Equalizer eq)
public void reset()
public int getBandCount()
public float setBand(int band, float neweq)
public float getBand(int band)