aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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));