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:
authorJoerg Mueller <nexyon@gmail.com>2010-08-16 18:55:45 +0400
committerJoerg Mueller <nexyon@gmail.com>2010-08-16 18:55:45 +0400
commita3837b617b9df268a1dba40848df446b53ed1a01 (patch)
tree16764e3c455ea0b1b4040b450d00d80719241cd6 /intern/audaspace
parent75bb393ecc6799bb6d379c05fb33bf40ac2d6fad (diff)
Audaspace: Fixing quaternion and relativeness of 3D sounds error.
Diffstat (limited to 'intern/audaspace')
-rw-r--r--intern/audaspace/intern/AUD_C-API.cpp4
1 files changed, 2 insertions, 2 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);
}