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()
EqualizerBand
getCenterFrequency
in interface EqualizerBand
public void setCenterFrequency(double centerFrequency)
EqualizerBand
setCenterFrequency
in interface EqualizerBand
centerFrequency
- float valuepublic double getBandwidth()
EqualizerBand
getBandwidth
in interface EqualizerBand
public void setBandwidth(double bandwidth)
EqualizerBand
setBandwidth
in interface EqualizerBand
bandwidth
- float valuepublic double getGain()
EqualizerBand
getGain
in interface EqualizerBand
public void setGain(double gain)
EqualizerBand
setGain
in interface EqualizerBand
gain
- 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)