Attempt to fix sound left-right channels

This commit is contained in:
Perttu Ahola 2012-04-06 00:39:37 +03:00
parent 4107390337
commit 5436f1c7d5

View file

@ -461,7 +461,7 @@ class OpenALSoundManager: public ISoundManager
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");
}