Microsoft SDK for Java

setOrientation

This method of the DirectSound3dListener Class sets the listeners orientation, given a front vector and a top vector.

Syntax

public void setOrientation(float xFront, float yFront, float zFront, float xTop, float yTop, float zTop, int applyFlag);

Parameters

xFront The x component of the front vector.
yFront The y component of the front vector.
zFront The z component of the front vector.
xTop The x component of the top vector.
yTop The y component of the top vector.
ztop The x component of the top vector.
applyFlag Value indicating when the setting should be applied. This value must be one of the following:

DS3D_DEFERRED
DS3D_IMMEDIATE


Remarks

The front vector points in the direction of the listener's nose, and the top vector points out the top of the listener's head.

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