DirectX SDK

DirectSoundBuffer.GetStatus

The DirectSoundBuffer.GetStatus method retrieves the current status of the sound buffer.

object.GetStatus() As CONST_DSBSTATUSFLAGS

Parameters

object
Object expression that resolves to a DirectSoundBuffer object.

Return Values

The status of the sound buffer. The status can be a combination of the following constants of the CONST_DSBSTATUSFLAGS enumeration:

DSBSTATUS_BUFFERLOST
The buffer is lost and must be restored before it can be played or locked.
DSBSTATUS_LOOPING
The buffer is being looped. If this value is not set, the buffer will stop when it reaches the end of the sound data. Note that if this value is set, the buffer must also be playing.
DSBSTATUS_PLAYING
The buffer is playing. If this value is not set, the buffer is stopped.

Error Codes

If the method fails, an error is raised and Err.Number may be set to DSERR_INVALIDPARAM.

See Also

DirectSoundBuffer