
![]() |
![]() |
|
To stop audio that is currently being played, use the
CMMFDevSound::Stop()
method:
IMPORT_C void Stop();
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.
For information about playing audio, see How to play audio.