aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-11-07 02:18:24 -0800
committerChris Robinson <[email protected]>2014-11-07 02:18:24 -0800
commit4c3f27193f7379513b3e45398711cfe1238184fd (patch)
tree93499e0af78b28be8568bd4ac689d3a40728b96f /Alc/mixer.c
parent6c954e71dbd99a2ceb072c08481aee92ef8461c0 (diff)
Use a separate macro for the max output channel count
Diffstat (limited to 'Alc/mixer.c')
-rw-r--r--Alc/mixer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c
index 8db51c12..82165c02 100644
--- a/Alc/mixer.c
+++ b/Alc/mixer.c
@@ -432,7 +432,7 @@ ALvoid MixSource(ALvoice *voice, ALsource *Source, ALCdevice *Device, ALuint Sam
parms->Filters[chan].ActiveType
);
if(!voice->IsHrtf)
- Mix(samples, MaxChannels, parms->OutBuffer, parms->Mix.Gains[chan],
+ Mix(samples, Device->NumSpeakers, parms->OutBuffer, parms->Mix.Gains[chan],
parms->Counter, OutPos, DstBufferSize);
else
HrtfMix(parms->OutBuffer, samples, parms->Counter, voice->Offset,