aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-06-03 01:40:17 -0700
committerChris Robinson <[email protected]>2018-06-03 01:52:05 -0700
commit72e4b603747124b398448cf3b408d09ff0544015 (patch)
tree1d007ea2855b2ce43c62244b048945f8e8b1c223 /Alc
parent48b265e136adab3d0f424bd1adbbf0641fa5697f (diff)
Clamp the maximum normalized reference frequency too
Diffstat (limited to 'Alc')
-rw-r--r--Alc/effects/modulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/effects/modulator.c b/Alc/effects/modulator.c
index e6143001..a5180669 100644
--- a/Alc/effects/modulator.c
+++ b/Alc/effects/modulator.c
@@ -140,7 +140,7 @@ static ALvoid ALmodulatorState_update(ALmodulatorState *state, const ALCcontext
state->step = clampi(state->step, 1, WAVEFORM_FRACONE-1);
f0norm = props->Modulator.HighPassCutoff / (ALfloat)device->Frequency;
- f0norm = maxf(f0norm, 0.003125f);
+ f0norm = clampf(f0norm, 1.0f/512.0f, 0.5f);
/* Bandwidth value is constant in octaves. */
BiquadFilter_setParams(&state->Chans[0].Filter, BiquadType_HighPass, 1.0f,
f0norm, calc_rcpQ_from_bandwidth(f0norm, 0.75f));