Platform SDK: DirectX |
The DirectSound3DListener.SetVelocity method sets the listener's velocity.
object.SetVelocity(x As Single, _ y As Single, _ z As Single, _ applyFlag As CONST_DS3DAPPLYFLAGS)
If the method fails, an error is raised and Err.Number may be set to DSERR_INVALIDPARAM.
The default velocity is (0,0,0).
Velocity is used only for Doppler effects. It does not move the listener. To change the listener's position, use the DirectSound3DListener.SetPosition method.