Attempt to fix sound left-right channels
authorPerttu Ahola <celeron55@gmail.com>
Thu, 5 Apr 2012 21:39:37 +0000 (00:39 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Thu, 5 Apr 2012 21:39:37 +0000 (00:39 +0300)
src/sound_openal.cpp

index 8d76b69e16621105b6fdb0cbb8048fa1e8721589..66faf40c1a9f2e2cb488a6f6659fd29a26d99f9f 100644 (file)
@@ -461,7 +461,7 @@ public:
                alListener3f(AL_VELOCITY, vel.X, vel.Y, vel.Z);
                ALfloat f[6];
                f3_set(f, at);
-               f3_set(f+3, up);
+               f3_set(f+3, -up);
                alListenerfv(AL_ORIENTATION, f);
                warn_if_error(alGetError(), "updateListener");
        }