final class NativeEqualizerBand extends java.lang.Object implements EqualizerBand
| Modifier and Type | Field and Description |
|---|---|
private long |
bandRef |
MAX_GAIN, MIN_GAIN| Modifier | Constructor and Description |
|---|---|
private |
NativeEqualizerBand(long bandRef) |
| Modifier and Type | Method and Description |
|---|---|
double |
getBandwidth()
Gets the bandwith (of frequencies) of this band.
|
double |
getCenterFrequency()
Gets the center frequency of this band.
|
double |
getGain()
Gets the gain value for this bandwidth.
|
private double |
nativeGetBandwidth(long bandRef) |
private double |
nativeGetCenterFrequency(long bandRef) |
private double |
nativeGetGain(long bandRef) |
private void |
nativeSetBandwidth(long bandRef,
double bandwidth) |
private void |
nativeSetCenterFrequency(long bandRef,
double centerFrequency) |
private void |
nativeSetGain(long bandRef,
double gain) |
void |
setBandwidth(double bandwidth)
Sets the bandwidth of this band.
|
void |
setCenterFrequency(double centerFrequency)
Sets the center frequency of this band.
|
void |
setGain(double gain)
Sets the gain value for this bandwidth.
|
public double getCenterFrequency()
EqualizerBandgetCenterFrequency in interface EqualizerBandpublic void setCenterFrequency(double centerFrequency)
EqualizerBandsetCenterFrequency in interface EqualizerBandcenterFrequency - float valuepublic double getBandwidth()
EqualizerBandgetBandwidth in interface EqualizerBandpublic void setBandwidth(double bandwidth)
EqualizerBandsetBandwidth in interface EqualizerBandbandwidth - float valuepublic double getGain()
EqualizerBandgetGain in interface EqualizerBandpublic void setGain(double gain)
EqualizerBandsetGain in interface EqualizerBandgain - float value in dBprivate double nativeGetCenterFrequency(long bandRef)
private void nativeSetCenterFrequency(long bandRef,
double centerFrequency)
private double nativeGetBandwidth(long bandRef)
private void nativeSetBandwidth(long bandRef,
double bandwidth)
private double nativeGetGain(long bandRef)
private void nativeSetGain(long bandRef,
double gain)