diff options
-rw-r--r-- | Alc/effects/distortion.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Alc/effects/distortion.c b/Alc/effects/distortion.c index a1058415..dce0d64d 100644 --- a/Alc/effects/distortion.c +++ b/Alc/effects/distortion.c @@ -84,6 +84,7 @@ static ALvoid ALdistortionState_update(ALdistortionState *state, ALCdevice *Devi /* Store waveshaper edge settings */ edge = sinf(Slot->EffectProps.Distortion.Edge * (F_PI/2.0f)); + edge = minf(edge, 0.99f); state->edge_coeff = 2.0f * edge / (1.0f-edge); /* Lowpass filter */ |