diff options
-rw-r--r-- | Alc/mastering.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/mastering.c b/Alc/mastering.c index 91267d83..1636c8d9 100644 --- a/Alc/mastering.c +++ b/Alc/mastering.c @@ -98,7 +98,7 @@ static void FollowEnvelope(Compressor *Comp, const ALsizei SamplesToDo) for(i = 0;i < SamplesToDo;i++) { - ALfloat env = maxf(-6.0f, log10f(Comp->Envelope[i])); + ALfloat env = log10f(maxf(Comp->Envelope[i], 0.000001f)); ALfloat slope = minf(1.0f, fabsf(env - last) / 4.5f); if(env > last) |