Microsoft SDK for Java

getOrientation

This method of the DirectSound3dListener Class retrieves the listener's current orientation in vectors: a front vector and a top vector.

Syntax

public void getOrientation(D3dVector orientFront, D3dVector orientTop);

Parameters

orientFront The D3dVector object that will contain the listener's front orientation vector.
orientTop The D3dVector object that will contain the listener's top orientation vector.

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. By default, the front vector is (0,0,1.0) and the top vector is (0,1.0,0).

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