summaryrefslogtreecommitdiffstats
path: root/Alc/panning.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-11-05 03:06:32 -0800
committerChris Robinson <[email protected]>2014-11-05 03:06:32 -0800
commite39117467c1d91afcdc375690b9d49a05c73e033 (patch)
tree239ab1c79ce68b66edbfd7ca75dccd040e52d81d /Alc/panning.c
parentc834c3fae59327a69914b22e8b7b357282963d3e (diff)
Fix panning of multi-channel sources
Diffstat (limited to 'Alc/panning.c')
-rw-r--r--Alc/panning.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/panning.c b/Alc/panning.c
index caaefd50..02d1dbe0 100644
--- a/Alc/panning.c
+++ b/Alc/panning.c
@@ -35,7 +35,7 @@
void ComputeAngleGains(const ALCdevice *device, ALfloat angle, ALfloat elevation, ALfloat ingain, ALfloat gains[MaxChannels])
{
ALfloat dir[3] = {
- -sinf(angle) * cosf(elevation),
+ sinf(angle) * cosf(elevation),
sinf(elevation),
-cosf(angle) * cosf(elevation)
};