Microsoft DirectX 8.0 (Visual Basic) |
Retrieves the current velocity for this sound buffer.
object.GetVelocity(velocity As D3DVECTOR)
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 DirectSound3DListener8.SetDistanceFactor method.
DirectSound3DBuffer8.SetPosition, DirectSound3DBuffer8.SetVelocity, Doppler Factor