diff options
author | Chris Robinson <[email protected]> | 2010-08-16 14:53:21 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-08-16 14:53:21 -0700 |
commit | e5cae875020ceced4a62557c230bb58a67fbe036 (patch) | |
tree | bde1be117497e1123db891278c36a3309a21df1d /Alc/ALc.c | |
parent | ba0ec1b4bac81fc636efb2881261dcf6516f85ba (diff) |
Handle clicks by watching changes between updates
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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++) { |