AudioTone: Multimedia audio tone example code

The example allows the user to:

  • Play a tone
  • Play dual tone

  • Stop the playing

The Multimedia Framework APIs are called by the example's CaudioTonePlayerclass 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 CmdaAudioToneUtilityand has separate methods for different functionalities like PlayDualTone()which in turn calls PrepareToPlayDualTone () of CmdaAudioToneUtility. The engine also implements callback functions of the MMdaAudioToneObserverinterface.



Click on the following link to download the example:

Click: browse to view the example code

Class summary

MMdaAudioToneObserver CMdaAudioToneUtility


Commands are given to the example through its menu – Play tone, Play dual tone and Stop.