Microsoft DirectX 8.1 (Visual Basic) |
The DSCURSORS type 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.
Syntax
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