diff options
author | Chris Robinson <[email protected]> | 2011-07-17 07:23:19 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-07-17 07:23:19 -0700 |
commit | f97310c757e01e601319f007bf77db841097d0e0 (patch) | |
tree | 1f462a587ec6da5835db1f7fc656c1b9bf68a2c8 /Alc/ALu.c | |
parent | 87b3520d028ee51a626e6b9cdc96affab0150794 (diff) |
Apply the click removal offset first, before decreasing it
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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++) |