diff options
author | Chris Robinson <[email protected]> | 2014-11-21 13:45:57 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-11-21 13:45:57 -0800 |
commit | 4ad6905c135d6964e57fe48fb7f93e579d028887 (patch) | |
tree | c2de2460a576bfe06ede0b56d286987545f21597 /Alc/ALu.c | |
parent | d608f0e9f0e3c321ad02f4cbacde74df007fc2cd (diff) |
Allocate the DryBuffer dynamically
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)(); |