IDirectSoundBuffer::GetStatus

HRESULT GetStatus(LPDWORD lpdwStatus);

Retrieves the current status of the sound buffer.

·Returns DS_OK if successful, or DSERR_INVALIDPARAM otherwise.

lpdwStatus

Address of a variable to contain the status of the sound buffer. The status can be set to one of the following values:

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 being played. If this value is not set, the buffer is stopped.