AudioPlaying: Multimedia audio example code

The example allows the user to:

  • Play a song

  • Pause/Resume the song

  • Stop the song

  • Rewind the song

  • Fast forward the song

The Multimedia Framework APIs are called by the example's CsimpleAudioPlayer class that acts as an engine. This also implements the various callback interfaces required by the APIs in order to report progress and error conditions.

The engine is driven through the example's UI class CAudioPlayingAppUi. The engine has member pointer of CmdaAudioPlayerUtility and has different separate methods for different functionalities like PlayL() for playing a song which in turn calls Play() of CmdaAudioPlayerUtility . The engine also implements callback functions of the MMdaAudioPlayerCallback interface.


Click on the following link to download the example:

Click: browse to view the example code.

Class summary

MMdaAudioPlayerCallback CMdaAudioPlayerUtility


Commands are given to the example through its menu – Play, Pause, Resume, Stop, Rewind, and Fast Forward.

A sample file, sample.wav is put by the example on the emulator's \udeb\z\data for file play.