From a3837b617b9df268a1dba40848df446b53ed1a01 Mon Sep 17 00:00:00 2001 From: Joerg Mueller Date: Mon, 16 Aug 2010 14:55:45 +0000 Subject: Audaspace: Fixing quaternion and relativeness of 3D sounds error. --- intern/audaspace/intern/AUD_C-API.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'intern/audaspace') 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); } -- cgit v1.2.3