Platform SDK: DirectX

DirectSound3DBuffer.GetPosition

The DirectSound3DBuffer.GetPosition method retrieves the sound buffer's position, in distance units.

object.GetPosition(position As D3DVECTOR)

Parameters

object
Object expression that resolves to a DirectSound3DBuffer object.
position
D3DVECTOR type that receives the position of the sound buffer.

Error Codes

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

Remarks

By default, distance units are meters, but you can change the units by using the DirectSound3DListener.SetDistanceFactor method.