C# Class javazoom.jl.decoder.Equalizer

The Equalizer class can be used to specify equalization settings for the MPEG audio decoder.

The equalizer consists of 32 band-pass filters. Each band of the equalizer can take on a fractional value between -1.0 and +1.0. At -1.0, the input signal is attenuated by 6dB, at +1.0 the signal is amplified by 6dB.

Mostra file Open project: RHY3756547/FreeSO Class Usage Examples

Public Properties

Property Type Description
BAND_NOT_PRESENT float
PASS_THRU_EQ Equalizer

Private Properties

Property Type Description
InitBlock void
getBandFactor float
limit float

Public Methods

Method Description
Equalizer ( ) : System

Creates a new Equalizer instance.

Equalizer ( EQFunction eq ) : System
Equalizer ( float settings ) : System
getBand ( int band ) : float

Retrieves the eq setting for a given band.

reset ( ) : void

Sets all bands to 0.0

setBand ( int band, float neweq ) : float

Private Methods

Method Description
InitBlock ( ) : void
getBandFactor ( float eq ) : float

Converts an equalizer band setting to a sample factor. The factor is determined by the function f = 2^n where n is the equalizer band setting in the range [-1.0,1.0].

limit ( float eq ) : float

Method Details

Equalizer() public method

Creates a new Equalizer instance.
public Equalizer ( ) : System
return System

Equalizer() public method

public Equalizer ( EQFunction eq ) : System
eq EQFunction
return System

Equalizer() public method

public Equalizer ( float settings ) : System
settings float
return System

getBand() public method

Retrieves the eq setting for a given band.
public getBand ( int band ) : float
band int
return float

reset() public method

Sets all bands to 0.0
public reset ( ) : void
return void

setBand() public method

public setBand ( int band, float neweq ) : float
band int
neweq float
return float

Property Details

BAND_NOT_PRESENT public_oe static_oe property

Equalizer setting to denote that a given band will not be present in the output signal.
public static float BAND_NOT_PRESENT
return float

PASS_THRU_EQ public_oe static_oe property

public static Equalizer,javazoom.jl.decoder PASS_THRU_EQ
return Equalizer