CPEAudioDtmfTonePlayer Class Reference

class CPEAudioDtmfTonePlayer : public CBase

plays DTMF tones using media server

audiohandling.lib
Since
Series60_2.7

Inherits from

  • CPEAudioDtmfTonePlayer

Constructor & Destructor Documentation

CPEAudioDtmfTonePlayer()

CPEAudioDtmfTonePlayer()[protected]

C++ default constructor.

~CPEAudioDtmfTonePlayer()

~CPEAudioDtmfTonePlayer()[virtual]

Destructor.

Member Functions Documentation

BufferToBeEmptied(CMMFBuffer *)

voidBufferToBeEmptied(CMMFBuffer *aBuffer)

Parameters

CMMFBuffer * aBuffer

BufferToBeFilled(CMMFBuffer *)

voidBufferToBeFilled(CMMFBuffer *aBuffer)

Parameters

CMMFBuffer * aBuffer

Cancel()

voidCancel()
Cancels playing.
Since
Series60_2.7

ConstructL()

voidConstructL()[protected]

ConvertError(TInt)

voidConvertError(TIntaError)

Parameters

TInt aError

ConvertVolume(TInt)

TInt ConvertVolume(TIntaVolume)[private]

Converts the given value to the one that matches tha range used by CMMFDevSound. The CMMFDevSound uses valuess that can from 0 to the value returned by a call to CMMFDevSound::MaxVolume().

Parameters

TInt aVolume

DeviceMessage(TUid, const TDesC8 &)

voidDeviceMessage(TUidaMessageType,
const TDesC8 &aMsg
)

Parameters

TUid aMessageType
const TDesC8 & aMsg

InitializeComplete(TInt)

voidInitializeComplete(TIntaError)

Parameters

TInt aError

NewL()

CPEAudioDtmfTonePlayer *NewL()[static]

Two-phased constructor.

Normalize(TChar &)

voidNormalize(TChar &aTone)[protected]
Normalize tone.
Since
Series60_2.7

Parameters

TChar & aTonedtmf tone.

PlayDtmfTone(TChar)

voidPlayDtmfTone(TCharaTone)
Starts playing given dtmf tone infinitely.
Since
Series60_2.7

Parameters

TChar aToneTone to be played.

PlayError(TInt)

voidPlayError(TIntaError)

Parameters

TInt aError

RecordError(TInt)

voidRecordError(TIntaError)

Parameters

TInt aError

SetVolume(TInt)

voidSetVolume(TIntaVolume)
Sets volume.
Since
Series60_2.7

Parameters

TInt aVolumevolume value or KDtmfSilent.

ToneFinished(TInt)

voidToneFinished(TIntaError)

Parameters

TInt aError

Member Data Documentation

CMMFDevSound * iDTMFPlayer

CMMFDevSound *iDTMFPlayer[protected]

TInt iVolume

TInt iVolume[protected]