This document describes how to play various types of tones and how to pause and resume a tone.
Before you start playing a tone, you must:
Construct a new instance of DevSound using the CMMFDevSound::NewL() function.
Initialize DevSound using the CMMFDevSound::InitializeL() function.
This function requires that you specify the DevSound observer class to handle callbacks. Once initialization has completed, successfully or otherwise, DevSound calls the MDevSoundObserver::InitializeComplete() function.
Configure DevSound according to the tone you select to play.
Note: The configuration differs according to the tone played.
The tone is a simple ring tone. You can play tones by calling the following functions:
CMMFDevSound::PlayToneL(TInt,const TTimeIntervalMicroSeconds &) plays a single tone.
CMMFDevSound::PlayDualToneL(TInt,TInt,const TTimeIntervalMicroSeconds &) plays a dual tone.
CMMFDevSound::PlayDTMFStringL(const TDesC &) plays a DTMF (Dual and Multi-Frequency) tone.
CMMFDevSound::PlayToneSequenceL(const TDesC8 &) plays a sequence of tones.