aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-09-12 01:09:01 -0700
committerChris Robinson <[email protected]>2011-09-12 01:09:01 -0700
commit3ee2826565b76474282879ff741c0f2a70bda4a8 (patch)
treebe644f9fd63088ee39034bc7be85f74d09d8ddc9 /Alc
parent0ceea27b44919b406e4ef7b89b13a1bbf71e10eb (diff)
Minor cleanup for applying click-removal to wet buffers
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALu.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 2f505217..716b6fb4 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -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);