Microsoft SDK for Java

setPosition

This method of the DirectSound3dListener Class retrieves the listener's current position in distance units. By default, these units are meters, but this can be changed by calling the DirectSound3dListener.setDistanceFactor method.

Syntax

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

Parameters

y The x component of the vector that will contain the listener's position.
y The y component of the vector that will contain the listener's position.
z The z component of the vector that will contain the listener's position.
applyFlag Flag values.

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