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/effects/compressor.c | |
parent | 6425480d40e2a1b150c208db0421eabb51fe0624 (diff) |
Use a macro for the silence threshold
Diffstat (limited to 'Alc/effects/compressor.c')
-rw-r--r-- | Alc/effects/compressor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/effects/compressor.c b/Alc/effects/compressor.c index 6c3ab425..46673f45 100644 --- a/Alc/effects/compressor.c +++ b/Alc/effects/compressor.c @@ -117,7 +117,7 @@ static ALvoid ALcompressorState_process(ALcompressorState *state, ALuint Samples for(kt = 0;kt < MaxChannels;kt++) { ALfloat gain = state->Gain[kt] * envgain * 2.0f; - if(!(gain > 0.00001f)) + if(!(gain > GAIN_SILENCE_THRESHOLD)) continue; for(it = 0;it < td;it++) |