Microsoft DirectX 8.0 (Visual Basic)

DSCURSORS

Returns the position of the play and write cursors to the DirectSoundSecondaryBuffer8.GetCurrentPosition method. Also returns the position of the capture and read cursors to the DirectSoundCaptureBuffer8.GetCurrentPosition method.

Type DSCURSORS
    lPlay As Long
    lWrite As Long
End Type

Members

lPlay
Play cursor in the play buffer or capture cursor in the capture buffer.
lWrite
Write cursor in the play buffer or read cursor in the capture buffer.

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 play buffer up to lWrite.

See Also

Play and Write Cursors, Capture Buffer Information