Microsoft SDK for Java

getVelocity

This method of the DirectSound3dListener Class retrieves the listener's current velocity.

Syntax

public void getVelocity(D3dVector velocity);

Parameters

velocity The D3dVector that will contain the listener's current velocity.

Remarks

Velocity is used only for Doppler effects. It does not actually move the listener. To change the listener's position, use the setPosition method. The default velocity is (0,0,0).

© 1999 Microsoft Corporation. All rights reserved. Terms of use.