The example allows the user to:
Play dual tone
Stop the playing
The Multimedia Framework APIs are called by the example's CaudioTonePlayer
class that acts as an engine. This also
implements the various callback interfaces required by the API in
order to report progress and error conditions.
The engine is driven through the example's UI class CAudioToneAppUi
. The engine has member pointer of CmdaAudioToneUtility
and has separate methods for different functionalities like PlayDualTone()
which in turn calls PrepareToPlayDualTone
()
of CmdaAudioToneUtility
. The engine
also implements callback functions of the MMdaAudioToneObserver
interface.
Text
Click on the following link to download the example: AudioTone.zip
Click: browse to view the example code
MMdaAudioToneObserver CMdaAudioToneUtility
Commands are given to the example through its menu – Play tone, Play dual tone and Stop.