Microsoft DirectX 8.0 (Visual Basic) |
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
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.