Microsoft SDK for Java

setPosition

This method of the DirectSound3dBuffer Class sets the sound buffer's current position, in distance units. Distance units are meters by default, but the units can be changed by using the setDistanceFactor method.

Syntax

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

Parameters

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

DS3D_DEFERRED
DS3D_IMMEDIATE


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