IDirectSound3DListener::GetPosition

HRESULT GetPosition(LPD3DVECTOR lpvPosition);

Retrieves the listener's current position in distance units. By default, these units are meters, but this can be changed by calling the IDirectSound3DListener::SetDistanceFactor method.

·Returns DS_OK if successful, or DSERR_INVALIDPARAM otherwise.

lpvPosition

Address of a D3DVECTOR structure that will contain the listener's position vector.