Note: This documentation is preliminary and is subject to change.
Retrieves the position of the play and write cursors in the sound buffer.
Definition
Visual Basic .NET
Public Sub GetCurrentPosition( _ ByRef currentPlayPosition As Integer, _ ByRef currentWritePosition As Integer _ )
C#
public voidGetCurrentPosition( out intcurrentPlayPosition, out intcurrentWritePosition );
Managed C++
public: voidGetCurrentPosition( int *currentPlayPosition, int *currentWritePosition );
JScript .NET
public function GetCurrentPosition( currentPlayPosition : int, currentWritePosition : int );
Parameters
currentPlayPosition
System.Int32. An integer that receives the offset, in bytes, of the play cursor position in the sound buffer.
currentWritePosition
System.Int32. An integer that receives the offset, in bytes, of the write cursor position in the sound buffer.
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.