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 the following values:
The buffer is lost and must be restored before it can be played or locked.
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.
The buffer is playing. If this value is not set, the buffer is stopped.