aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alMain.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-08-14 21:30:14 -0700
committerChris Robinson <[email protected]>2010-08-14 21:30:14 -0700
commitb65bc4523653017dfc7b910ebafcb213714fcb0c (patch)
treeb2c00466b501ba4bfb8039139b4eec2d7cea802d /OpenAL32/Include/alMain.h
parent94b7e5a227b03fb4c77064a09da834a63286c4e8 (diff)
Add a corrective, click-remval sample value offset
This will hopefully be more effective and rebust at removing clicks and pops, particularly from starts and stops in the middle of a sound. Based on an idea by Ben Davis.
Diffstat (limited to 'OpenAL32/Include/alMain.h')
-rw-r--r--OpenAL32/Include/alMain.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index 202133a1..1aa3d03e 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -409,6 +409,8 @@ struct ALCdevice_struct
ALfloat PanningLUT[OUTPUTCHANNELS * LUT_NUM];
ALuint NumChan;
+ ALfloat ClickRemoval[OUTPUTCHANNELS];
+
// Contexts created on this device
ALCcontext **Contexts;
ALuint NumContexts;