Microsoft SDK for Java

setVelocity

This method of the DirectSound3dBuffer Class sets the sound buffer's current velocity.

Syntax

public void setVelocity(float x, float y, float z, int applyFlag);

Parameters

x The x-coordinate of the new velocity vector.
y The y-coordinate of the new velocity vector.
z The z-coordinate of the new velocity vector.
applyFlag Value indicating when the setting should be applied. This value must be one of the following:

DS3D_DEFERRED
DS3D_IMMEDIATE


Remarks

Velocity is used for Doppler effects only. It does not actually move the buffer.

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