diff options
author | Chris Robinson <[email protected]> | 2011-09-12 01:09:01 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-09-12 01:09:01 -0700 |
commit | 3ee2826565b76474282879ff741c0f2a70bda4a8 (patch) | |
tree | be644f9fd63088ee39034bc7be85f74d09d8ddc9 /Alc/ALu.c | |
parent | 0ceea27b44919b406e4ef7b89b13a1bbf71e10eb (diff) |
Minor cleanup for applying click-removal to wet buffers
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -995,16 +995,13 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size) slot_end = slot + ctx->ActiveEffectSlotCount; while(slot != slot_end) { - for(i = 0;i < SamplesToDo;i++) + for(c = 0;c < SamplesToDo;c++) { - (*slot)->WetBuffer[i] += (*slot)->ClickRemoval[0]; + (*slot)->WetBuffer[c] += (*slot)->ClickRemoval[0]; (*slot)->ClickRemoval[0] -= (*slot)->ClickRemoval[0] / 256.0f; } - for(i = 0;i < 1;i++) - { - (*slot)->ClickRemoval[i] += (*slot)->PendingClicks[i]; - (*slot)->PendingClicks[i] = 0.0f; - } + (*slot)->ClickRemoval[0] += (*slot)->PendingClicks[0]; + (*slot)->PendingClicks[0] = 0.0f; if(!DeferUpdates && ExchangeInt(&(*slot)->NeedsUpdate, AL_FALSE)) ALEffect_Update((*slot)->EffectState, ctx, *slot); |