aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-08-16 14:53:21 -0700
committerChris Robinson <[email protected]>2010-08-16 14:53:21 -0700
commite5cae875020ceced4a62557c230bb58a67fbe036 (patch)
treebde1be117497e1123db891278c36a3309a21df1d /Alc/ALc.c
parentba0ec1b4bac81fc636efb2881261dcf6516f85ba (diff)
Handle clicks by watching changes between updates
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 7e94895b..d05bbebc 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -902,7 +902,10 @@ static ALCboolean UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
device->SamplesPlayed /= oldRate;
for(i = 0;i < OUTPUTCHANNELS;i++)
+ {
device->ClickRemoval[i] = 0.0f;
+ device->PendingClicks[i] = 0.0f;
+ }
for(i = 0;i < device->NumContexts;i++)
{