Avoid hard-coding the channel count

This commit is contained in:
Chris Robinson
2010-04-09 14:21:47 -07:00
parent 484702a2e5
commit 488ec612bb
+2 -1
View File
@@ -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;