IDirectSound3DListener::GetOrientation

HRESULT GetOrientation(

LPD3DVECTOR lpvOrientFront,

LPD3DVECTOR lpvOrientTop);

Retrieves the listener's current orientation in vectors: a front vector and a top vector.

·Returns DS_OK if successful, or DSERR_INVALIDPARAM otherwise.

lpvOrientFront

Address of a D3DVECTOR structure that will contain the listener's front orientation vector.

lpvOrientTop

Address of a D3DVECTOR structure that will contain the listener's top orientation vector.

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).