DynamicsProcessing.EqBand
public
static
final
class
DynamicsProcessing.EqBand
extends DynamicsProcessing.BandBase
java.lang.Object | ||
↳ | android.media.audiofx.DynamicsProcessing.BandBase | |
↳ | android.media.audiofx.DynamicsProcessing.EqBand |
Class for Equalizer Bands Equalizer bands have three controllable parameters: enabled/disabled, cutoffFrequency and gain
Summary
Public constructors | |
---|---|
EqBand(boolean enabled, float cutoffFrequency, float gain)
Class constructor for EqBand |
|
EqBand(DynamicsProcessing.EqBand cfg)
Class constructor for EqBand |
Public methods | |
---|---|
float
|
getGain()
gets current gain of band in decibels (dB) |
void
|
setGain(float gain)
sets current gain of band in decibels (dB) |
String
|
toString()
Returns a string representation of the object. |
Inherited methods | |
---|---|
Public constructors
EqBand
public EqBand (boolean enabled, float cutoffFrequency, float gain)
Class constructor for EqBand
Parameters | |
---|---|
enabled |
boolean : true if this band is currently used to process sound. When false,
the band is effectively muted and sound set to zero. |
cutoffFrequency |
float : topmost frequency number (in Hz) this band will process. The
effective bandwidth for the band is then computed using this and the previous band
topmost frequency (or 0 Hz for band number 0). Frequencies are expected to increase with
band number, thus band 0 cutoffFrequency <= band 1 cutoffFrequency, and so on. |
gain |
float : of equalizer band in decibels (dB). A gain of 0 dB means no change in level. |
EqBand
public EqBand (DynamicsProcessing.EqBand cfg)
Class constructor for EqBand
Parameters | |
---|---|
cfg |
DynamicsProcessing.EqBand : copy constructor |
Public methods
getGain
public float getGain ()
gets current gain of band in decibels (dB)
Returns | |
---|---|
float |
current gain of band in decibels (dB) |
setGain
public void setGain (float gain)
sets current gain of band in decibels (dB)
Parameters | |
---|---|
gain |
float : desired in decibels (db) |
toString
public String toString ()
Returns a string representation of the object.
Returns | |
---|---|
String |
a string representation of the object. |