aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-11-21 13:45:57 -0800
committerChris Robinson <[email protected]>2014-11-21 13:45:57 -0800
commit4ad6905c135d6964e57fe48fb7f93e579d028887 (patch)
treec2de2460a576bfe06ede0b56d286987545f21597 /Alc/ALu.c
parentd608f0e9f0e3c321ad02f4cbacde74df007fc2cd (diff)
Allocate the DryBuffer dynamically
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 4a5402e7..97205d8b 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -1128,7 +1128,7 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size)
IncrementRef(&device->MixCount);
SamplesToDo = minu(size, BUFFERSIZE);
- for(c = 0;c < MAX_OUTPUT_CHANNELS;c++)
+ for(c = 0;c < device->NumChannels;c++)
memset(device->DryBuffer[c], 0, SamplesToDo*sizeof(ALfloat));
V0(device->Backend,lock)();