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.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.