DirectX SDK

DirectSound3DListener.GetPosition

The DirectSound3DListener.GetPosition method retrieves the listener's current position in distance units. By default, these units are meters, but this can be changed by calling the DirectSound3DListener.SetDistanceFactor method.

object.GetPosition(position As D3DVECTOR)

Parameters

object
Object expression that resolves to a DirectSound3DListener object.
position
A D3DVECTOR type that will contain the listener's position vector.

Error Codes

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

See Also

DirectSound3DListener.SetPosition