Platform SDK: DirectX

DirectSoundBuffer.Stop

The DirectSoundBuffer.Stop method causes the sound buffer to stop playing.

object.Stop()

Parameters

object
Object expression that resolves to a DirectSoundBuffer object.

Error Codes

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

Remarks

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.