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>2011-08-16 01:50:09 +0400
committerJoerg Mueller <nexyon@gmail.com>2011-08-16 01:50:09 +0400
commita458de88b65c5fcb0f11c005c040163d3cf76cec (patch)
tree1b917a5d035c8b9c224971acee2ef0d9dd6b79b2 /source/gameengine/Ketsji/KX_KetsjiEngine.cpp
parentcbbbf31315bf57aed5ccfec02f29495b2e3767ec (diff)
3D Audio GSoC:
High quality resampling on mixdown, linear for playback. * Lots of improvements and fixes for the JOS resampler, now it works fine! * High quality filter coefficients for the JOS resampler (sorry for the 5 MB source file). * Fix for GE orientation bug. Note: moto uses x,y,z,w quaternion storage, while rest of blender uses w,x,y,z. * Minor changes/fixes.
Diffstat (limited to 'source/gameengine/Ketsji/KX_KetsjiEngine.cpp')
-rw-r--r--source/gameengine/Ketsji/KX_KetsjiEngine.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/gameengine/Ketsji/KX_KetsjiEngine.cpp b/source/gameengine/Ketsji/KX_KetsjiEngine.cpp
index 0b83e3247ff..a51105e0c16 100644
--- a/source/gameengine/Ketsji/KX_KetsjiEngine.cpp
+++ b/source/gameengine/Ketsji/KX_KetsjiEngine.cpp
@@ -1016,15 +1016,15 @@ void KX_KetsjiEngine::DoSound(KX_Scene* scene)
if(dev)
{
AUD_Vector3 v;
- AUD_Quaternion q;
+ float q[4];
cam->NodeGetWorldPosition().getValue(v.get());
dev->setListenerLocation(v);
cam->GetLinearVelocity().getValue(v.get());
dev->setListenerVelocity(v);
- cam->NodeGetWorldOrientation().getRotation().getValue(q.get());
- dev->setListenerOrientation(q);
+ cam->NodeGetWorldOrientation().getRotation().getValue(q);
+ dev->setListenerOrientation(AUD_Quaternion(q[3], q[0], q[1], q[2]));
}
}