Stopping Audio Play

This tutorial describes how to stop the audio that is currently being played.


Call the CMMFDevSound::Stop() function to stop the playing audio. The CMMFDevSound::Stop() can occur either after the CMMFDevSound::PlayData() call or after the MDevSoundObserver::BufferToBeFilled() callback. Note: After calling CMMFDevSound::Stop(), the client should not call PlayData() for any outstanding MDevSoundObserver::BufferToBeFilled() callbacks as they will be ignored. The client should not attempt to write any data into the buffer after the call to CMMFDevSound::Stop() as the buffer may no longer be valid.
Related concepts
Starting Audio Play