Platform SDK: DirectX |
The DirectSoundBuffer.Stop method causes the sound buffer to stop playing.
object.Stop()
If the method fails, an error is raised and Err.Number may be set to one of the following error values.
DSERR_INVALIDPARAM |
DSERR_PRIOLEVELNEEDED |
The method sets the current play position of the buffer to the sample that follows the last sample played. When the DirectSoundBuffer.Play method is subsequently called on the buffer, it continues playing where it left off.