The GetCurrentPosition method retrieves the positions of the capture and read cursors in the buffer.
The capture cursor is ahead of the read cursor. The data after the read position up to and including the capture position is not necessarily valid data.
HRESULT GetCurrentPosition( LPDWORD pdwCapturePosition, LPDWORD pdwReadPosition );
If the method succeeds, the return value is DS_OK. If the method fails, the return value may be one of the following error values:
Return code |
DSERR_INVALIDPARAM |
DSERR_NODRIVER |
DSERR_OUTOFMEMORY |
Header: Declared in Dsound.h.
Import Library: Use Dsound3d.dll.