BufferCaps.CanGetCurrentPosition Property |
Language: |
Retrieves whether the application can get a more accurate play cursor.
Visual Basic Public ReadOnly Property CanGetCurrentPosition As Boolean C# public bool CanGetCurrentPosition { get; } C++ public:
property bool CanGetCurrentPosition {
bool get();
}JScript public function get CanGetCurrentPosition() : boolean
System.Boolean
This property is read-only.
Value that is set to true if the application can get a more accurate play cursor from the buffer; otherwise, false.
The Buffer.GetCurrentPosition method uses the new behavior of the play cursor. In Microsoft DirectSound in Microsoft DirectX 1, the play cursor was significantly ahead of the actual playing sound on emulated sound cards; it was directly behind the write cursor. Now, if CanGetCurrentPosition is true, the application can get a more accurate play cursor. If this property is false, the old behavior is preserved for compatibility.
CanGetCurrentPosition only matters with emulated sound cards. If a DirectSound driver is present, the play cursor is accurate for DirectSound in all versions of DirectX.
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center