Avoid mixing to a send slot if the gain is too low

This commit is contained in:
Chris Robinson
2012-10-10 03:52:45 -07:00
parent 1b7f01b7cc
commit 513c6db0d5
+3
View File
@@ -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++)