Retrieves the position, velocity, and orientation of the listener.

BOOL BASS_Get3DPosition(
    BASS_3DVECTOR *pos,
    BASS_3DVECTOR *vel,
    BASS_3DVECTOR *front,
    BASS_3DVECTOR *top


posThe position of the listener... NULL = don't retrieve it.
velThe listener's velocity... NULL = don't retrieve it.
frontThe direction that the listener's front is pointing... NULL=don't retrieve it.
topThe 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_INITBASS_Init has not been successfully called.
BASS_ERROR_NO3DThe device was not initialized with 3D support.


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.

See also

BASS_Set3DPosition, BASS_3DVECTOR structure