Platform SDK: DirectX |
The DirectSoundBuffer.GetCurrentPosition method retrieves the position of the play and write cursors in the sound buffer.
object.GetCurrentPosition(cursors As DSCURSORS)
If the method fails, an error is raised and Err.Number may be set to one of the following values.
DSERR_INVALIDPARAM |
DSERR_PRIOLEVELNEEDED |
The write cursor always leads the play cursor, typically by about 15 milliseconds of audio data. It is not safe to write data between the play position and the write position.