DirectX SDK

DirectSound3DListener.GetVelocity

The DirectSound3DListener.GetVelocity method retrieves the listener's current velocity.

object.GetVelocity() As D3DVECTOR

Parameters

object
Object expression that resolves to a DirectSound3DListener object.

Return Values

If the method succeeds, a D3DVECTOR type that will contain the listener's current velocity.

Error Codes

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

Remarks

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

See Also

DirectSound3DListener.SetVelocity