Microsoft DirectX 8.1 (Visual Basic) |
The GetCurrentPosition method retrieves the position of the play and write cursors.
Syntax
object.GetCurrentPosition(cursors As DSCURSORS)
Parts
object
Resolves to a DirectSoundSecondaryBuffer8 object.
cursors
DSCURSORS type that receives the offset of the play cursor and the write cursor, in bytes.
Error Codes
If the method fails, an error is raised and Err.Number may be set to one of the following values.
DSERR_INVALIDPARAM |
DSERR_PRIOLEVELNEEDED |
Remarks
The write cursor is the point in the buffer ahead of which it is safe to write data to the buffer. Data should not be written to the part of the buffer after the play cursor and before the write cursor. For more information, see Play and Write Cursors.
See Also