diff options
author | Chris Robinson <[email protected]> | 2010-04-09 14:21:47 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-04-09 14:21:47 -0700 |
commit | 488ec612bb086895af8b2e402ff7cc9e27f45c15 (patch) | |
tree | 9ba98ff00156d9c73500c90fdabf10fe97d9cf48 /Alc/ALu.c | |
parent | 484702a2e5e9cc0368a4562bc7574764a2178da8 (diff) |
Avoid hard-coding the channel count
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |