Audaspace: Fixing quaternion and relativeness of 3D sounds error.
This commit is contained in:
@@ -474,7 +474,7 @@ int AUD_setListenerOrientation(const float* orientation)
|
||||
|
||||
if(AUD_3ddevice)
|
||||
{
|
||||
AUD_Quaternion q(orientation[0], orientation[1], orientation[2], orientation[3]);
|
||||
AUD_Quaternion q(orientation[3], orientation[0], orientation[1], orientation[2]);
|
||||
AUD_3ddevice->setListenerOrientation(q);
|
||||
return true;
|
||||
}
|
||||
@@ -556,7 +556,7 @@ int AUD_setSourceOrientation(AUD_Channel* handle, const float* orientation)
|
||||
|
||||
if(AUD_3ddevice)
|
||||
{
|
||||
AUD_Quaternion q(orientation[0], orientation[1], orientation[2], orientation[3]);
|
||||
AUD_Quaternion q(orientation[3], orientation[0], orientation[1], orientation[2]);
|
||||
return AUD_3ddevice->setSourceOrientation(handle, q);
|
||||
}
|
||||
|
||||
|
||||
@@ -102,7 +102,7 @@ void KX_SoundActuator::play()
|
||||
// sound shall be played 3D
|
||||
m_handle = AUD_play(sound, 0);
|
||||
|
||||
AUD_setRelative(m_handle, true);
|
||||
AUD_setRelative(m_handle, false);
|
||||
AUD_setVolumeMaximum(m_handle, m_3d.max_gain);
|
||||
AUD_setVolumeMinimum(m_handle, m_3d.min_gain);
|
||||
AUD_setDistanceReference(m_handle, m_3d.reference_distance);
|
||||
|
||||
Reference in New Issue
Block a user