diff -r 43e37759235e -r 51a74ef9ed63 Symbian3/SDK/Source/GUID-14BAAB7C-35CD-5A43-B362-79F88C7712DE.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-14BAAB7C-35CD-5A43-B362-79F88C7712DE.dita Wed Mar 31 11:11:55 2010 +0100 @@ -0,0 +1,17 @@ + + + + + +Playing TonesThis 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:

  1. Construct a new instance of DevSound using the CMMFDevSound::NewL() function.

  2. 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.

  3. 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.

Playing a Tone Playing a DTMF Tone Playing a Tone Sequence Playing a Fixed Tone Sequence Pausing and Resuming a Tone
Playing Audio Tutorial Recording Audio + Tutorial
\ No newline at end of file