diff options
author | Chris Robinson <[email protected]> | 2012-09-16 08:27:50 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-09-16 08:27:50 -0700 |
commit | 79b6d89b3f3f49649e349d8bac1a9bb42ec3f1de (patch) | |
tree | a726f5de2a84682f5d04fd508e23625d0220e018 /Alc/ALu.c | |
parent | 535e8fd0f76ac9e8a9338cfcf873aafc83d42758 (diff) |
Explicitly give the wet buffer 1 channel
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -943,9 +943,9 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size) slot_end = slot + ctx->ActiveEffectSlotCount; while(slot != slot_end) { - for(c = 0;c < SamplesToDo;c++) + for(i = 0;i < SamplesToDo;i++) { - (*slot)->WetBuffer[c] += (*slot)->ClickRemoval[0]; + (*slot)->WetBuffer[0][i] += (*slot)->ClickRemoval[0]; (*slot)->ClickRemoval[0] -= (*slot)->ClickRemoval[0] * (1.0f/256.0f); } (*slot)->ClickRemoval[0] += (*slot)->PendingClicks[0]; @@ -955,10 +955,10 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size) ALeffectState_Update((*slot)->EffectState, device, *slot); ALeffectState_Process((*slot)->EffectState, SamplesToDo, - (*slot)->WetBuffer, device->DryBuffer); + (*slot)->WetBuffer[0], device->DryBuffer); for(i = 0;i < SamplesToDo;i++) - (*slot)->WetBuffer[i] = 0.0f; + (*slot)->WetBuffer[0][i] = 0.0f; slot++; } @@ -969,9 +969,9 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size) slot = &device->DefaultSlot; if(*slot != NULL) { - for(c = 0;c < SamplesToDo;c++) + for(i = 0;i < SamplesToDo;i++) { - (*slot)->WetBuffer[c] += (*slot)->ClickRemoval[0]; + (*slot)->WetBuffer[0][i] += (*slot)->ClickRemoval[0]; (*slot)->ClickRemoval[0] -= (*slot)->ClickRemoval[0] * (1.0f/256.0f); } (*slot)->ClickRemoval[0] += (*slot)->PendingClicks[0]; @@ -981,10 +981,10 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size) ALeffectState_Update((*slot)->EffectState, device, *slot); ALeffectState_Process((*slot)->EffectState, SamplesToDo, - (*slot)->WetBuffer, device->DryBuffer); + (*slot)->WetBuffer[0], device->DryBuffer); for(i = 0;i < SamplesToDo;i++) - (*slot)->WetBuffer[i] = 0.0f; + (*slot)->WetBuffer[0][i] = 0.0f; } ALCdevice_Unlock(device); |