Sets the position, velocity, and orientation of the listener (ie. the player).
BOOL BASS_Set3DPosition( BASS_3DVECTOR *pos, BASS_3DVECTOR *vel, BASS_3DVECTOR *front, BASS_3DVECTOR *top );
pos | The position of the listener... NULL = leave current. |
vel | The listener's velocity in units (as set with BASS_Set3DFactors) per second... NULL = leave current. This is only used to calculate the doppler effects, and in no way affects the listener's position. |
front | The direction that the listener's front is pointing... NULL = leave current. This is automatically normalized. |
top | The direction that the listener's top is pointing... NULL = leave current. This is automatically normalized, and adjusted to be at a right-angle to the front vector if necessary. |
BASS_ERROR_INIT | BASS_Init has not been successfully called. |
BASS_ERROR_NO3D | The device was not initialized with 3D support. |
When using multiple devices, the current thread's device setting (as set with BASS_SetDevice) determines which device this function call applies to.