diff options
author | Chris Robinson <[email protected]> | 2013-10-06 17:25:47 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-10-06 17:25:47 -0700 |
commit | 79edd2cf3b46b22d3e6c57aec11b942809f24ff3 (patch) | |
tree | b8d75b8de358eb4ea3c251907936cd7c70b9ac8b /Alc/mixer_c.c | |
parent | 6425480d40e2a1b150c208db0421eabb51fe0624 (diff) |
Use a macro for the silence threshold
Diffstat (limited to 'Alc/mixer_c.c')
-rw-r--r-- | Alc/mixer_c.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |