Platform SDK: DirectX

DSCURSORS

The DSCURSORS type is used by the DirectSoundBuffer.GetCurrentPosition and DirectSoundCaptureBuffer.GetCurrentPosition methods.

Type DSCURSORS
    lPlay As Long
    lWrite As Long
End Type

Members

lPlay
Current play position in the DirectSoundBuffer or the current capture position in the DirectSoundCaptureBuffer.
lWrite
Current write position in the DirectSoundBuffer or the current read position in the DirectSoundCaptureBuffer object. This position is an offset within the sound buffer and is specified in bytes.

Remarks

Values are offsets from the start of the buffer, in bytes.

The cursor represented by lPlay is slightly ahead of the cursor represented by lWrite. The part of the buffer between the two is not ready for reading or writing. Applications can safely read data from a capture buffer or write data to a secondary buffer up to lWrite.