From 513c6db0d5df12cd36d0fff6e3d013248bc39732 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 10 Oct 2012 03:52:45 -0700 Subject: Avoid mixing to a send slot if the gain is too low --- Alc/mixer_c.c | 3 +++ 1 file changed, 3 insertions(+) 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++) -- cgit v1.2.3