CDistanceAttenuation Class Reference

class CDistanceAttenuation : public CAudioEffect

This is the Distance Attenuation effect class for managing audio Distance Attenuation settings.

DistanceAttenuationEffect.lib
Since
3.0

Inherits from

Public Member Functions
~CDistanceAttenuation()
IMPORT_C voidDistanceAttenuation(TInt32 &, TInt32 &, TBool &, TUint32 &, TUint32 &)
IMPORT_C CDistanceAttenuation *NewL(CMdaAudioConvertUtility &)
IMPORT_C CDistanceAttenuation *NewL(CMdaAudioInputStream &)
IMPORT_C CDistanceAttenuation *NewL(CMdaAudioOutputStream &)
IMPORT_C CDistanceAttenuation *NewL(CMdaAudioPlayerUtility &)
IMPORT_C CDistanceAttenuation *NewL(CMdaAudioRecorderUtility &, TBool)
IMPORT_C CDistanceAttenuation *NewL(CMMFDevSound &)
IMPORT_C CDistanceAttenuation *NewL(CMdaAudioToneUtility &)
IMPORT_C CDistanceAttenuation *NewL(CCustomCommandUtility *)
IMPORT_C CDistanceAttenuation *NewL(MCustomInterface &)
IMPORT_C CDistanceAttenuation *NewL(CMidiClientUtility &)
IMPORT_C CDistanceAttenuation *NewL(CDrmPlayerUtility &)
IMPORT_C CDistanceAttenuation *NewL(CVideoPlayerUtility &)
IMPORT_C voidRollOffFactorMax(TUint32 &)
IMPORT_C voidRoomRollOffFactorMax(TUint32 &)
IMPORT_C voidSetDistanceAttenuationL(TInt32, TInt32, TBool, TUint32, TUint32)
IMPORT_C TUidUid()
Protected Member Functions
CDistanceAttenuation()
IMPORT_C const TDesC8 &DoEffectData()
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
TEfDistanceAttenuationDataPckg iDataPckgFrom
TEfDistanceAttenuationDataPckg iDataPckgTo
TEfDistanceAttenuation iDistanceAttenuationData
Inherited Attributes
CAudioEffect::iEnabled
CAudioEffect::iEnforced
CAudioEffect::iHaveUpdateRights
CAudioEffect::iObservers

Constructor & Destructor Documentation

CDistanceAttenuation()

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

~CDistanceAttenuation()

IMPORT_C~CDistanceAttenuation()[virtual]

Destructor

Member Functions Documentation

DistanceAttenuation(TInt32 &, TInt32 &, TBool &, TUint32 &, TUint32 &)

IMPORT_C voidDistanceAttenuation(TInt32 &aRMin,
TInt32 &aRMax,
TBool &aMuteAfterMax,
TUint32 &aRollOffFactor,
TUint32 &aRoomRollOffFactor
)
Gets the Distance Attenuation of the listener.
Since
3.0

Parameters

TInt32 & aRMinThe source-to-listener distance below which the sound level is constant
TInt32 & aRMaxThe source-to-listener distance above which the sound level is constant or zero
TBool & aMuteAfterMaxIndicate if the sound is muted beyond RMax
TUint32 & aRollOffFactorMultiplier factor to source-to-listener distance
TUint32 & aRoomRollOffFactorMultiplier factor to source-to-listener distance for Room effect.

DoEffectData()

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

NewL(CMdaAudioConvertUtility &)

IMPORT_C CDistanceAttenuation *NewL(CMdaAudioConvertUtility &aUtility)[static]
Factory function for creating the distance attenuation object.
Since
3.0

Parameters

CMdaAudioConvertUtility & aUtilityA reference to a convert utility

NewL(CMdaAudioInputStream &)

IMPORT_C CDistanceAttenuation *NewL(CMdaAudioInputStream &aUtility)[static]
Factory function for creating the distance attenuation object.
Since
3.0

Parameters

CMdaAudioInputStream & aUtilityA reference to an audio input stream utility

NewL(CMdaAudioOutputStream &)

IMPORT_C CDistanceAttenuation *NewL(CMdaAudioOutputStream &aUtility)[static]
Factory function for creating the distance attenuation object.
Since
3.0

Parameters

CMdaAudioOutputStream & aUtilityA reference to an audio output stream utility

NewL(CMdaAudioPlayerUtility &)

IMPORT_C CDistanceAttenuation *NewL(CMdaAudioPlayerUtility &aUtility)[static]
Factory function for creating the distance attenuation object.
Since
3.0

Parameters

CMdaAudioPlayerUtility & aUtilityA reference to an audio player utility

NewL(CMdaAudioRecorderUtility &, TBool)

IMPORT_C CDistanceAttenuation *NewL(CMdaAudioRecorderUtility &aUtility,
TBoolaRecordStream
)[static]
Factory function for creating the distance attenuation 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(CMMFDevSound &)

IMPORT_C CDistanceAttenuation *NewL(CMMFDevSound &aDevSound)[static]
Factory function for creating the distance attenuation object.
Since
3.0

Parameters

CMMFDevSound & aDevSoundA reference to a DevSound instance

NewL(CMdaAudioToneUtility &)

IMPORT_C CDistanceAttenuation *NewL(CMdaAudioToneUtility &aUtility)[static]
Factory function for creating the distance attenuation object.
Since
3.0

Parameters

CMdaAudioToneUtility & aUtilityA reference to an audio tone utility

NewL(CCustomCommandUtility *)

IMPORT_C CDistanceAttenuation *NewL(CCustomCommandUtility *aUtility)[static]
Factory function for creating the distance attenuation object.
Since
3.0

Parameters

CCustomCommandUtility * aUtilityA reference to a custom command utility

NewL(MCustomInterface &)

IMPORT_C CDistanceAttenuation *NewL(MCustomInterface &aCustomInterface)[static]
Factory function for creating the distance attenuation object.
Since
3.0

Parameters

MCustomInterface & aCustomInterfaceA reference to a custom interface

NewL(CMidiClientUtility &)

IMPORT_C CDistanceAttenuation *NewL(CMidiClientUtility &aUtility)[static]
Factory function for creating the distance attenuation object.
Since
3.0

Parameters

CMidiClientUtility & aUtilityA reference to a CMidiClientUtility

NewL(CDrmPlayerUtility &)

IMPORT_C CDistanceAttenuation *NewL(CDrmPlayerUtility &aUtility)[static]
Factory function for creating the distance attenuation object.
Since
3.0

Parameters

CDrmPlayerUtility & aUtility

NewL(CVideoPlayerUtility &)

IMPORT_C CDistanceAttenuation *NewL(CVideoPlayerUtility &aUtility)[static]
Factory function for creating the distance attenuation object.
Since
3.2

Parameters

CVideoPlayerUtility & aUtility

RollOffFactorMax(TUint32 &)

IMPORT_C voidRollOffFactorMax(TUint32 &aRollOfFactorMax)
Get roll off factor maximum value.
Since
3.0

Parameters

TUint32 & aRollOfFactorMax

RoomRollOffFactorMax(TUint32 &)

IMPORT_C voidRoomRollOffFactorMax(TUint32 &aRoomRollOfFactorMax)
Get room roll off factor maximum value.
Since
3.0

Parameters

TUint32 & aRoomRollOfFactorMax

SetDistanceAttenuationL(TInt32, TInt32, TBool, TUint32, TUint32)

IMPORT_C voidSetDistanceAttenuationL(TInt32aRMin,
TInt32aRMax,
TBoolaMuteAfterMax,
TUint32aRollOffFactor,
TUint32aRoomRollOffFactor
)
Sets the Distance Attenuation
Since
3.0

Parameters

TInt32 aRMinThe source-to-listener distance below which the sound level is constant
TInt32 aRMaxThe source-to-listener distance above which the sound level is constant or zero
TBool aMuteAfterMaxIndicate if the sound is muted beyond RMax
TUint32 aRollOffFactorMultiplier factor to source-to-listener distance
TUint32 aRoomRollOffFactorMultiplier factor to source-to-listener distance for Room effect.

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

TEfDistanceAttenuationDataPckg iDataPckgFrom

TEfDistanceAttenuationDataPckg iDataPckgFrom[protected]

TEfDistanceAttenuationDataPckg iDataPckgTo

TEfDistanceAttenuationDataPckg iDataPckgTo[protected]

TEfDistanceAttenuation iDistanceAttenuationData

TEfDistanceAttenuation iDistanceAttenuationData[protected]