From c367e9703f8b9f03dfab5238cb26aa4acb85c2a2 Mon Sep 17 00:00:00 2001 From: NickCulbertson Date: Wed, 6 Dec 2023 13:34:20 -0500 Subject: [PATCH] Update StereoDelay.cpp --- .../CDunneAudioKit/DunneCore/Modulated Delay/StereoDelay.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/CDunneAudioKit/DunneCore/Modulated Delay/StereoDelay.cpp b/Sources/CDunneAudioKit/DunneCore/Modulated Delay/StereoDelay.cpp index 87a23fd..e1b52cf 100644 --- a/Sources/CDunneAudioKit/DunneCore/Modulated Delay/StereoDelay.cpp +++ b/Sources/CDunneAudioKit/DunneCore/Modulated Delay/StereoDelay.cpp @@ -30,8 +30,8 @@ namespace DunneCore void StereoDelay::setDelayMs(double delayMs) { - delayLine1.setDelayMs(delayMs); - delayLine2.setDelayMs(delayMs); + delayLine1.setDelayMs(fmax(1.0, delayMs)); + delayLine2.setDelayMs(fmax(1.0, delayMs)); } void StereoDelay::setFeedback(float fraction)