Platform SDK: DirectX |
The DirectSoundCaptureBuffer.GetCurrentPosition method retrieves the current capture and read positions in the 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 error values.
DSERR_INVALIDPARAM |
DSERR_NODRIVER |
DSERR_OUTOFMEMORY |
The capture position is ahead of the read position and indicates the point to which data is being captured. The read position (DSCURSORS.lWrite) is the point up to which data can safely be read. The data after the read position, up to and including the capture position, is not necessarily valid data, because of buffering.