DirectX SDK

DirectSound3DBuffer.GetPosition

The DirectSound3DBuffer.GetPosition method retrieves the sound buffer's current position, in distance units. By default, distance units are meters, but the units can be changed by using the DirectSound3DListener.SetDistanceFactor method.

object.GetPosition(position As D3DVECTOR)

Parameters

object
Object expression that resolves to a DirectSound3DBuffer object.
position
A D3DVECTOR type that will contain the current position of the sound buffer.

Error Codes

If the method fails, an error is raised and Err.Number may be set to DSERR_INVALIDPARAM.