Top Description Fields Methods
com.sun.media.jfxmedia.effects

public Interface EqualizerBand

Known Direct Implementers
com.sun.media.jfxmediaimpl.NativeEqualizerBand, com.sun.media.jfxmediaimpl.platform.ios.IOSMediaPlayer.NullEQBand

EqualizerBand represents a single band in AudioEqualizer. EqualizerBand can specify the center frequency, bandwidth, and gain on the band.
See Also
AudioEqualizer

Field Summary

Modifier and TypeField and Description
public static final double
MAX_GAIN

Maximum possible gain.

public static final double
MIN_GAIN

Minimum possible gain.

Method Summary

Modifier and TypeMethod and Description
public double

Returns:

float value
getBandwidth
()

Gets the bandwith (of frequencies) of this band.

public double

Returns:

float value
getCenterFrequency
()

Gets the center frequency of this band.

public double

Returns:

float value for dB
getGain
()

Gets the gain value for this bandwidth.

public void
setBandwidth(double
float value
bandwidth
)

Sets the bandwidth of this band.

public void
setCenterFrequency(double
float value
centerFrequency
)

Sets the center frequency of this band.

public void
setGain(double
float value in dB
gain
)

Sets the gain value for this bandwidth.

Field Detail

MAX_GAINback to summary
public static final double MAX_GAIN

Maximum possible gain.

MIN_GAINback to summary
public static final double MIN_GAIN

Minimum possible gain.

Method Detail

getBandwidthback to summary
public double getBandwidth()

Gets the bandwith (of frequencies) of this band.

Returns:double

float value

getCenterFrequencyback to summary
public double getCenterFrequency()

Gets the center frequency of this band. Half of the bandwidth is to the left of this frequncy and half is to the right.

Returns:double

float value

getGainback to summary
public double getGain()

Gets the gain value for this bandwidth. Gains are in decibels.

Returns:double

float value for dB

setBandwidthback to summary
public void setBandwidth(double bandwidth)

Sets the bandwidth of this band.

Parameters
bandwidth:double

float value

setCenterFrequencyback to summary
public void setCenterFrequency(double centerFrequency)

Sets the center frequency of this band. Half of the bandwidth is to the left of this frequncy and half is to the right.

Parameters
centerFrequency:double

float value

setGainback to summary
public void setGain(double gain)

Sets the gain value for this bandwidth. Gains are in decibels.

Parameters
gain:double

float value in dB

Exceptions
IllegalArgumentException:
if gain is outside of the platform possible range. For example GStreamer based equalizer gain values must be in [-24.0; 12.0] interval.