Microsoft DirectX 8.1 (Visual Basic) |
The GetVelocity method retrieves the listener's velocity.
Syntax
object.GetVelocity() As D3DVECTOR
Parts
object
Resolves to a DirectSound3DListener8 object.
Return Values
Returns a D3DVECTOR type containing the listener's velocity.
Error Codes
If the method fails, an error is raised and Err.Number may be set to DSERR_INVALIDPARAM.
Remarks
The default velocity is (0,0,0).
Velocity is used only for Doppler effects. It does not move the listener.
See Also