CAudioEqualizer Class Reference

class CAudioEqualizer : public CAudioEffect

This is the Equalizer effect class for managing audio equalizer settings.

AudioEqualizerEffect.lib
Since
3.0

Inherits from

Public Member Functions
~CAudioEqualizer()
IMPORT_C TInt32BandLevel(TUint8)
IMPORT_C TInt32BandWidth(TUint8)
IMPORT_C TInt32CenterFrequency(TUint8)
IMPORT_C TInt32CrossoverFrequency(TUint8)
IMPORT_C voidDbLevelLimits(TInt32 &, TInt32 &)
IMPORT_C CAudioEqualizer *NewL()
IMPORT_C CAudioEqualizer *NewL(CMdaAudioConvertUtility &)
IMPORT_C CAudioEqualizer *NewL(CMdaAudioInputStream &)
IMPORT_C CAudioEqualizer *NewL(CMdaAudioOutputStream &)
IMPORT_C CAudioEqualizer *NewL(CMdaAudioPlayerUtility &)
IMPORT_C CAudioEqualizer *NewL(CMdaAudioRecorderUtility &, TBool)
IMPORT_C CAudioEqualizer *NewL(CMdaAudioToneUtility &)
IMPORT_C CAudioEqualizer *NewL(CMMFDevSound &)
IMPORT_C CAudioEqualizer *NewL(CCustomCommandUtility *)
IMPORT_C CAudioEqualizer *NewL(MCustomInterface &)
IMPORT_C CAudioEqualizer *NewL(CMidiClientUtility &)
IMPORT_C CAudioEqualizer *NewL(CDrmPlayerUtility &)
IMPORT_C CAudioEqualizer *NewL(CVideoPlayerUtility &)
IMPORT_C TUint8NumberOfBands()
IMPORT_C voidSetBandLevelL(TInt8, TInt32)
IMPORT_C TUidUid()
Protected Member Functions
CAudioEqualizer()
IMPORT_C const TDesC8 &DoBandDataL(TUint8, TBool)
IMPORT_C const TDesC8 &DoEffectData()
IMPORT_C voidSetBandDataL(TInt, const TDesC8 &)
IMPORT_C voidSetEffectData(const TDesC8 &)
Inherited Functions
CAudioEffect::ApplyL()
CAudioEffect::CAudioEffect()
CAudioEffect::DisableL()
CAudioEffect::EnableL()
CAudioEffect::EnforceL(TBool)
CAudioEffect::HaveUpdateRights()const
CAudioEffect::IsEnabled()const
CAudioEffect::IsEnforced()const
CAudioEffect::RegisterObserverL(MAudioEffectObserver &)
CAudioEffect::UnRegisterObserver(MAudioEffectObserver &)
CAudioEffect::~CAudioEffect()
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Protected Attributes
TEfAudioEqualizer iAudioEqualizerData
TUint32 iBandChange
HBufC8 *iBandDataBuf
TEfAudioEqualizerBandDataPckg iBandDataPckgTo
RArray< TEfAudioEqualizerBand >iBandsData
TEfAudioEqualizerDataPckg iDataPckgTo
Inherited Attributes
CAudioEffect::iEnabled
CAudioEffect::iEnforced
CAudioEffect::iHaveUpdateRights
CAudioEffect::iObservers

Constructor & Destructor Documentation

CAudioEqualizer()

IMPORT_CCAudioEqualizer()[protected]
Private C++ constructor for this class.
Since
3.0

~CAudioEqualizer()

IMPORT_C~CAudioEqualizer()[virtual]

Destructor

Member Functions Documentation

BandLevel(TUint8)

IMPORT_C TInt32BandLevel(TUint8aBand)const
Get the band level in mB for the specified band
Since
3.0

Parameters

TUint8 aBandFrequency Band

BandWidth(TUint8)

IMPORT_C TInt32BandWidth(TUint8aBand)const
Get the band width in Hz for the specified band.
Since
3.0

Parameters

TUint8 aBandFrequency Band

CenterFrequency(TUint8)

IMPORT_C TInt32CenterFrequency(TUint8aBand)const
Get the center frequency in Hz for a given band
Since
3.0

Parameters

TUint8 aBandFrequency Band

CrossoverFrequency(TUint8)

IMPORT_C TInt32CrossoverFrequency(TUint8aBand)const
Get the cross-over frequency between the given frequency band (aBand) and the next band
Since
3.0

Parameters

TUint8 aBandFrequency Band

DbLevelLimits(TInt32 &, TInt32 &)

IMPORT_C voidDbLevelLimits(TInt32 &aMin,
TInt32 &aMax
)
Get the dB range in mB for the equalizer
Since
3.0

Parameters

TInt32 & aMinMaximum level in dB
TInt32 & aMax

DoBandDataL(TUint8, TBool)

IMPORT_C const TDesC8 &DoBandDataL(TUint8aBand,
TBoolaAllBands
)[protected]
Create a descriptor containing data for the specified band(s).
Since
3.0

Parameters

TUint8 aBandThe frequency band data to package. Valid if aAllBands = EFalse.
TBool aAllBandsIndicate if data for all bands is requested.

DoEffectData()

IMPORT_C const TDesC8 &DoEffectData()[protected, virtual]
From CAudioEffect Create a package of the effect data
Since
3.0

NewL()

IMPORT_C CAudioEqualizer *NewL()[static]
Factory function for creating the audio equalizer object.
Since
3.0

NewL(CMdaAudioConvertUtility &)

IMPORT_C CAudioEqualizer *NewL(CMdaAudioConvertUtility &aUtility)[static]
Factory function for creating the audio equalizer object.
Since
3.0

Parameters

CMdaAudioConvertUtility & aUtilityA reference to a convert utility

NewL(CMdaAudioInputStream &)

IMPORT_C CAudioEqualizer *NewL(CMdaAudioInputStream &aUtility)[static]
Factory function for creating the audio equalizer object.
Since
3.0

Parameters

CMdaAudioInputStream & aUtilityA reference to an audio input stream utility

NewL(CMdaAudioOutputStream &)

IMPORT_C CAudioEqualizer *NewL(CMdaAudioOutputStream &aUtility)[static]
Factory function for creating the audio equalizer object.
Since
3.0

Parameters

CMdaAudioOutputStream & aUtilityA reference to an audio output stream utility

NewL(CMdaAudioPlayerUtility &)

IMPORT_C CAudioEqualizer *NewL(CMdaAudioPlayerUtility &aUtility)[static]
Factory function for creating the audio equalizer object.
Since
3.0

Parameters

CMdaAudioPlayerUtility & aUtilityA reference to an audio player utility

NewL(CMdaAudioRecorderUtility &, TBool)

IMPORT_C CAudioEqualizer *NewL(CMdaAudioRecorderUtility &aUtility,
TBoolaRecordStream
)[static]
Factory function for creating the audio equalizer object.
Since
3.0

Parameters

CMdaAudioRecorderUtility & aUtilityA reference to an audio record utility
TBool aRecordStreamETrue if the effect is to be applied to the recording, EFalse if the effect is to be applied only to the playback

NewL(CMdaAudioToneUtility &)

IMPORT_C CAudioEqualizer *NewL(CMdaAudioToneUtility &aUtility)[static]
Factory function for creating the audio equalizer object.
Since
3.0

Parameters

CMdaAudioToneUtility & aUtilityA reference to an audio tone utility

NewL(CMMFDevSound &)

IMPORT_C CAudioEqualizer *NewL(CMMFDevSound &aDevSound)[static]
Factory function for creating the audio equalizer object.
Since
3.0

Parameters

CMMFDevSound & aDevSoundA reference to a DevSound instance

NewL(CCustomCommandUtility *)

IMPORT_C CAudioEqualizer *NewL(CCustomCommandUtility *aUtility)[static]
Factory function for creating the audio equalizer object.
Since
3.0

Parameters

CCustomCommandUtility * aUtilityA reference to a custom command utility

NewL(MCustomInterface &)

IMPORT_C CAudioEqualizer *NewL(MCustomInterface &aCustomInterface)[static]
Factory function for creating the audio equalizer object.
Since
3.0

Parameters

MCustomInterface & aCustomInterfaceA reference to a custom interface

NewL(CMidiClientUtility &)

IMPORT_C CAudioEqualizer *NewL(CMidiClientUtility &aUtility)[static]
Factory function for creating the audio equalizer object.
Since
3.0

Parameters

CMidiClientUtility & aUtility

NewL(CDrmPlayerUtility &)

IMPORT_C CAudioEqualizer *NewL(CDrmPlayerUtility &aUtility)[static]
Factory function for creating the audio equalizer object.
Since
3.0

Parameters

CDrmPlayerUtility & aUtility

NewL(CVideoPlayerUtility &)

IMPORT_C CAudioEqualizer *NewL(CVideoPlayerUtility &aUtility)[static]
Factory function for creating the audio equalizer object.
Since
3.2

Parameters

CVideoPlayerUtility & aUtility

NumberOfBands()

IMPORT_C TUint8NumberOfBands()const
Get number of equalizer bands.
Since
3.0

SetBandDataL(TInt, const TDesC8 &)

IMPORT_C voidSetBandDataL(TIntaNumberOfBands,
const TDesC8 &aBandDataBuffer
)[protected]
Unpack band data from the specified descriptor.
Since
3.0

Parameters

TInt aNumberOfBandsNumber of bands contained in the descriptor.
const TDesC8 & aBandDataBufferDescriptor containing band data

SetBandLevelL(TInt8, TInt32)

IMPORT_C voidSetBandLevelL(TInt8aBand,
TInt32aLevel
)
Sets the equalizer band level value in mB, ranging from Min to Max
Since
3.0

Parameters

TInt8 aBandFrequency Band
TInt32 aLevelband level in dB, ranges from DbLevelLimits()

SetEffectData(const TDesC8 &)

IMPORT_C voidSetEffectData(const TDesC8 &aEffectDataBuffer)[protected, virtual]
From CAudioEffect Internal function to unpack effect data
Since
3.0

Parameters

const TDesC8 & aEffectDataBufferDescriptor containing packed effect data

Uid()

IMPORT_C TUidUid()const [virtual]

Member Data Documentation

TEfAudioEqualizer iAudioEqualizerData

TEfAudioEqualizer iAudioEqualizerData[protected]

TUint32 iBandChange

TUint32 iBandChange[protected]

HBufC8 * iBandDataBuf

HBufC8 *iBandDataBuf[protected]

TEfAudioEqualizerBandDataPckg iBandDataPckgTo

TEfAudioEqualizerBandDataPckg iBandDataPckgTo[protected]

RArray< TEfAudioEqualizerBand > iBandsData

RArray< TEfAudioEqualizerBand >iBandsData[protected]

TEfAudioEqualizerDataPckg iDataPckgTo

TEfAudioEqualizerDataPckg iDataPckgTo[protected]