aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-07-17 07:23:19 -0700
committerChris Robinson <[email protected]>2011-07-17 07:23:19 -0700
commitf97310c757e01e601319f007bf77db841097d0e0 (patch)
tree1f462a587ec6da5835db1f7fc656c1b9bf68a2c8 /Alc
parent87b3520d028ee51a626e6b9cdc96affab0150794 (diff)
Apply the click removal offset first, before decreasing it
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 54f99d32..ecf2c687 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -1029,8 +1029,8 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size)
for(i = 0;i < SamplesToDo;i++)
{
- ALEffectSlot->ClickRemoval[0] -= ALEffectSlot->ClickRemoval[0] / 256.0f;
ALEffectSlot->WetBuffer[i] += ALEffectSlot->ClickRemoval[0];
+ ALEffectSlot->ClickRemoval[0] -= ALEffectSlot->ClickRemoval[0] / 256.0f;
}
for(i = 0;i < 1;i++)
{
@@ -1061,8 +1061,8 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size)
{
for(c = 0;c < MAXCHANNELS;c++)
{
- device->ClickRemoval[c] -= device->ClickRemoval[c] / 256.0f;
device->DryBuffer[i][c] += device->ClickRemoval[c];
+ device->ClickRemoval[c] -= device->ClickRemoval[c] / 256.0f;
}
}
for(i = 0;i < MAXCHANNELS;i++)