diff options
author | Chris Robinson <[email protected]> | 2018-01-14 08:25:36 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-01-14 08:25:36 -0800 |
commit | 7e491ef2b2d58e90ce34eabea21056646aace089 (patch) | |
tree | d13b741d6399ba069e12e6054eda95be9f46f794 | |
parent | 6f532fa0e5a42354d423db1f4d2e034769eacc0f (diff) |
Remove a redundant lower value clamp
-rw-r--r-- | Alc/effects/reverb.c | 6 |
1 files 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 |