Microsoft DirectX 8.1 (Visual Basic)

DirectSound3DBuffer8.GetVelocity

The GetVelocity method retrieves the current velocity for this sound buffer.

Syntax

object.GetVelocity(velocity As D3DVECTOR)

Parts

object

Resolves to a DirectSound3DBuffer8 object.

velocity

D3DVECTOR type that receives the sound buffer'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 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.

See Also