Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--intern/audaspace/intern/AUD_C-API.cpp4
-rw-r--r--source/gameengine/Ketsji/KX_SoundActuator.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/intern/audaspace/intern/AUD_C-API.cpp b/intern/audaspace/intern/AUD_C-API.cpp
index a12478ab477..a0c56257228 100644
--- a/intern/audaspace/intern/AUD_C-API.cpp
+++ b/intern/audaspace/intern/AUD_C-API.cpp
@@ -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);
}
diff --git a/source/gameengine/Ketsji/KX_SoundActuator.cpp b/source/gameengine/Ketsji/KX_SoundActuator.cpp
index 09ad567117f..9ebb36578c4 100644
--- a/source/gameengine/Ketsji/KX_SoundActuator.cpp
+++ b/source/gameengine/Ketsji/KX_SoundActuator.cpp
@@ -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);