Microsoft DirectX 8.1 (Visual Basic) |
The Stop method causes the buffer to stop playing.
Syntax
object.Stop()
Parts
object
Resolves to a DirectSoundSecondaryBuffer8 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 play cursor of the buffer to the sample that follows the last sample played. This means that when the DirectSoundSecondaryBuffer8.Play method is subsequently called on the buffer, it continues playing where it left off.