Platform SDK: DirectX |
The DirectSound3DBuffer.SetVelocity method sets the sound buffer'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.
Velocity is used for Doppler effects only. It does not move the buffer.
The default unit of measurement is meters per second, but you can change this by using the DirectSound3DListener.SetDistanceFactor method.
DirectSound3DBuffer.SetPosition, DirectSound3DBuffer.GetVelocity