public static class MediaPlayer.Equalizer
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static MediaPlayer.Equalizer |
create()
Create a new default equalizer, with all frequency values zeroed.
|
static MediaPlayer.Equalizer |
createFromPreset(int index)
Create a new equalizer, with initial frequency values copied from an existing
preset.
|
protected void |
finalize() |
float |
getAmp(int index)
Get the amplification value for a particular equalizer frequency band.
|
static int |
getBandCount()
Get the number of distinct frequency bands for an equalizer.
|
static float |
getBandFrequency(int index)
Get a particular equalizer band frequency.
|
float |
getPreAmp()
Get the current pre-amplification value from an equalizer.
|
static int |
getPresetCount()
Get the number of equalizer presets.
|
static java.lang.String |
getPresetName(int index)
Get the name of a particular equalizer preset.
|
boolean |
setAmp(int index,
float amp)
Set a new amplification value for a particular equalizer frequency band.
|
boolean |
setPreAmp(float preamp)
Set a new pre-amplification value for an equalizer.
|
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public static MediaPlayer.Equalizer create()
MediaPlayer.setEqualizer(org.videolan.libvlc.MediaPlayer.Equalizer)
.public static MediaPlayer.Equalizer createFromPreset(int index)
MediaPlayer.setEqualizer(org.videolan.libvlc.MediaPlayer.Equalizer)
.public static int getPresetCount()
public static java.lang.String getPresetName(int index)
index
- index of the preset, counting from zero.public static int getBandCount()
public static float getBandFrequency(int index)
index
- index of the band, counting from zero.public float getPreAmp()
public boolean setPreAmp(float preamp)
MediaPlayer.setEqualizer(org.videolan.libvlc.MediaPlayer.Equalizer)
.
The supplied amplification value will be clamped to the -20.0 to +20.0 range.preamp
- value (-20.0 to 20.0 Hz)public float getAmp(int index)
index
- counting from zero, of the frequency band to get.public boolean setAmp(int index, float amp)
MediaPlayer.setEqualizer(org.videolan.libvlc.MediaPlayer.Equalizer)
.
The supplied amplification value will be clamped to the -20.0 to +20.0 range.index
- counting from zero, of the frequency band to set.amp
- amplification value (-20.0 to 20.0 Hz).
\return true on success.