aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-04-09 14:21:47 -0700
committerChris Robinson <[email protected]>2010-04-09 14:21:47 -0700
commit488ec612bb086895af8b2e402ff7cc9e27f45c15 (patch)
tree9ba98ff00156d9c73500c90fdabf10fe97d9cf48 /Alc/ALu.c
parent484702a2e5e9cc0368a4562bc7574764a2178da8 (diff)
Avoid hard-coding the channel count
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 3eda6edb..e5ec2e1b 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -235,7 +235,8 @@ ALvoid aluInitPanning(ALCdevice *Device)
ALfloat maxout;
ALuint s, s2;
- Device->NumChan = 8;
+ /* Exclude LFE */
+ Device->NumChan = OUTPUTCHANNELS - 1;
Speaker2Chan[0] = BACK_LEFT;
Speaker2Chan[1] = SIDE_LEFT;
Speaker2Chan[2] = FRONT_LEFT;