From 7e491ef2b2d58e90ce34eabea21056646aace089 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 14 Jan 2018 08:25:36 -0800 Subject: [PATCH] Remove a redundant lower value clamp --- Alc/effects/reverb.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Alc/effects/reverb.c b/Alc/effects/reverb.c index a024a5ac..77830c96 100644 --- a/Alc/effects/reverb.c +++ b/Alc/effects/reverb.c @@ -665,11 +665,9 @@ static ALfloat CalcLimitedHfRatio(const ALfloat hfRatio, const ALfloat airAbsorp */ limitRatio = 1.0f / (CalcDecayLength(airAbsorptionGainHF, decayTime) * SpeedOfSound); - /* Using the limit calculated above, apply the upper bound to the HF - * ratio. Also need to limit the result to a minimum of 0.1, just like - * the HF ratio parameter. + /* Using the limit calculated above, apply the upper bound to the HF ratio. */ - return clampf(limitRatio, 0.1f, hfRatio); + return minf(limitRatio, hfRatio); } /* Calculates the first-order high-pass coefficients following the I3DL2