From 79edd2cf3b46b22d3e6c57aec11b942809f24ff3 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 6 Oct 2013 17:25:47 -0700 Subject: Use a macro for the silence threshold --- Alc/mixer_c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc/mixer_c.c') diff --git a/Alc/mixer_c.c b/Alc/mixer_c.c index 168aa43f..da3f8318 100644 --- a/Alc/mixer_c.c +++ b/Alc/mixer_c.c @@ -96,7 +96,7 @@ void MixDirect_C(const DirectParams *params, const ALfloat *restrict data, ALuin for(c = 0;c < MaxChannels;c++) { DrySend = params->Gains[srcchan][c]; - if(!(DrySend > 0.00001f)) + if(!(DrySend > GAIN_SILENCE_THRESHOLD)) continue; if(OutPos == 0) @@ -119,7 +119,7 @@ void MixSend_C(const SendParams *params, const ALfloat *restrict data, ALuint pos; WetSend = params->Gain; - if(!(WetSend > 0.00001f)) + if(!(WetSend > GAIN_SILENCE_THRESHOLD)) return; if(OutPos == 0) -- cgit v1.2.3