IDirectSound3DListener::GetVelocity

HRESULT GetVelocity(LPD3DVECTOR lpvVelocity);

Retrieves the listener's current velocity.

·Returns DS_OK if successful, or DSERR_INVALIDPARAM otherwise.

lpvVelocity

Address of a D3DVECTOR structure that will contain the listener's current velocity.

Velocity is used only for Doppler effects. It does not actually move the listener. To change the listener's position, use the IDirectSound3DListener::SetPosition method. The default velocity is (0,0,0).