aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-10-10 03:52:45 -0700
committerChris Robinson <[email protected]>2012-10-10 03:52:45 -0700
commit513c6db0d5df12cd36d0fff6e3d013248bc39732 (patch)
tree589150e26033857ae72688cb1bbed1b0ff905460
parent1b7f01b7cc28cf4e517ada656faf5b3828c8fe68 (diff)
Avoid mixing to a send slot if the gain is too low
-rw-r--r--Alc/mixer_c.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Alc/mixer_c.c b/Alc/mixer_c.c
index 28eee188..027c4e37 100644
--- a/Alc/mixer_c.c
+++ b/Alc/mixer_c.c
@@ -121,6 +121,9 @@ void MixSend_C(SendParams *params, const ALfloat *RESTRICT data,
ALfloat WetSend = params->Gain;
ALuint pos;
+ if(WetSend < 0.00001f)
+ return;
+
if(OutPos == 0)
WetClickRemoval[0] -= data[0] * WetSend;
for(pos = 0;pos < BufferSize;pos++)