From 7bfea9087e9ea596b5f7c4aee563c5fc7d9962c1 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 1 Feb 2014 19:31:05 -0800 Subject: [PATCH] Remove an unnecessary special-case for the click removal --- Alc/ALu.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/Alc/ALu.c b/Alc/ALu.c index bf3d8174..fd8065ed 100644 --- a/Alc/ALu.c +++ b/Alc/ALu.c @@ -1139,20 +1139,7 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size) /* Click-removal. Could do better; this only really handles immediate * changes between updates where a predictive sample could be * generated. Delays caused by effects and HRTF aren't caught. */ - if(device->FmtChans == DevFmtMono) - { - ALfloat offset = device->ClickRemoval[FrontCenter]; - if(offset < (1.0f/32768.0f)) - offset = 0.0f; - else for(i = 0;i < SamplesToDo;i++) - { - device->DryBuffer[FrontCenter][i] += offset; - offset -= offset * (1.0f/256.0f); - } - device->ClickRemoval[FrontCenter] = offset + device->PendingClicks[FrontCenter]; - device->PendingClicks[FrontCenter] = 0.0f; - } - else if(device->FmtChans == DevFmtStereo) + if(device->FmtChans == DevFmtStereo) { /* Assumes the first two channels are FrontLeft and FrontRight */ for(c = 0;c < 2;c++)