This method of the DirectSound3dListener Class sets the listener's velocity.
public void setVelocity(float x, float y, float z, int applyFlag);
x | The x-coordinate of the listener's new velocity vector. |
y | The y-coordinate of the listener's new velocity vector. |
z | The z-coordinate of the listener's new velocity vector. |
applyFlag | Value indicating when the setting should be applied. This value must be one of the following: |
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).