BASS_Get3DPosition
Retrieves the position, velocity, and orientation of the listener.
BOOL BASS_Get3DPosition( BASS_3DVECTOR *pos, BASS_3DVECTOR *vel, BASS_3DVECTOR *front, BASS_3DVECTOR *top );
Parameters
pos | The position of the listener... NULL = don't retrieve it. |
vel | The listener's velocity... NULL = don't retrieve it. |
front | The direction that the listener's front is pointing... NULL=don't retrieve it. |
top | The direction that the listener's top is pointing... NULL = don't retrieve it. |
Return value
If successful, then TRUE is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code.Error codes
BASS_ERROR_INIT | BASS_Init has not been successfully called. |
BASS_ERROR_NO3D | The device was not initialized with 3D support. |
Remarks
The front and top parameters must both be retrieved in a single call, they cannot be retrieved individually.When using multiple devices, the current thread's device setting (as set with BASS_SetDevice) determines which device this function call applies to.