Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



How to pause and continue while playing audio

To pause audio that is currently being played, use the CMMFDevSound::Pause() method:

IMPORT_C void Pause();

The CMMFDevSound::Pause() method temporarily stops the play process.

From the paused state, use the CMMFDevSound::PlayData() method to resume playing. Play continues from the pause point. Conversely, if you want to start a new play cycle, you can use the CMMFDevSound::PlayInitL() method.

Note: Using CMMFDevSound::PlayInitL() resets the samples played count and discards any existing buffers, buffer requests and pause points.

For information about playing audio, see How to play audio.