Package javazoom.jl.decoder
Class Equalizer
java.lang.Object
javazoom.jl.decoder.Equalizer
The
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.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final float
Equalizer setting to denote that a given band will not be present in the output signal.static final Equalizer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat
getBand
(int band) Retrieves the eq setting for a given band.int
Retrieves the number of bands present in this equalizer.void
reset()
Sets all bands to 0.0float
setBand
(int band, float neweq) void
setFrom
(float[] eq) void
Sets the bands of this equalizer to the value the bands of another equalizer.void
-
Field Details
-
BAND_NOT_PRESENT
public static final float BAND_NOT_PRESENTEqualizer setting to denote that a given band will not be present in the output signal.- See Also:
-
PASS_THRU_EQ
-
-
Constructor Details
-
Equalizer
public Equalizer()Creates a newEqualizer
instance. -
Equalizer
public Equalizer(float[] settings) -
Equalizer
-
-
Method Details
-
setFrom
public void setFrom(float[] eq) -
setFrom
-
setFrom
Sets the bands of this equalizer to the value the bands of another equalizer. Bands that are not present in both equalizers are ignored. -
reset
public void reset()Sets all bands to 0.0 -
getBandCount
public int getBandCount()Retrieves the number of bands present in this equalizer. -
setBand
public float setBand(int band, float neweq) -
getBand
public float getBand(int band) Retrieves the eq setting for a given band.
-