diff options
author | Chris Robinson <[email protected]> | 2012-10-10 03:52:45 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-10-10 03:52:45 -0700 |
commit | 513c6db0d5df12cd36d0fff6e3d013248bc39732 (patch) | |
tree | 589150e26033857ae72688cb1bbed1b0ff905460 | |
parent | 1b7f01b7cc28cf4e517ada656faf5b3828c8fe68 (diff) |
Avoid mixing to a send slot if the gain is too low
-rw-r--r-- | Alc/mixer_c.c | 3 |
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++) |