Stopping Audio Record
This section describes how to use the DevSound library while stopping the audio record functionality.
Call the
CMMFDevSound::Stop() function to stop audio that is currently being recorded. The
CMMFDevSound::Stop() can occur either after the
CMMFDevSound::RecordData() call or after the
MDevSoundObserver::BufferToBeEmptied() callback. Note: The client must call
CMMFDevSound::RecordData() once for each
MDevSoundObserver::BufferToBeEmptied() callback. A
CMMFDevSound::Stop() call is always preceded by a
CMMFDevSound::Pause() call, the recording cycle then continues until a zero length buffer is returned in the
MDevSoundObserver::BufferToBeEmptied() call, after which the
CMMFDevSound::Stop() call is made.