Pausing and Resuming Audio Play

The Pause() function stops the audio data at the physical sound device without stopping the buffer traffic. If the Resume() function is supported, you can then use it to continue playing. The buffer traffic continues because the Pause() function does not pause or terminate the MMMFAudioDataSupplier::BufferToBeFilled(MMMFBufferSource *,CMMFBuffer *) play data cycle.

  1. Check that the Resume() function is supported using the CMMFDevSound::IsResumeSupported() function.

  2. If the resume function is supported, call the CMMFDevSound::Pause() function to pause the audio data.

  3. Call the CMMFDevSound::Resume() function to continue playing the audio data. Note: It is possible to resume with new audio data rather than the audio data that is paused. To do this call CMMFDevSound::EmptyBuffers() before you call Resume() .
Related concepts
Playing Audio
Related tasks
Stop Playing Audio