From 61a4a3785abdeb290a96345c6e15dc4fc8a63349 Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Mon, 22 May 2023 16:51:50 +0100 Subject: [PATCH] DelayLine: Fix a bug in Lagrange interpolation --- modules/juce_dsp/processors/juce_DelayLine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_dsp/processors/juce_DelayLine.h b/modules/juce_dsp/processors/juce_DelayLine.h index 1b9de4c875..cf0f2d3678 100644 --- a/modules/juce_dsp/processors/juce_DelayLine.h +++ b/modules/juce_dsp/processors/juce_DelayLine.h @@ -283,7 +283,7 @@ private: { if constexpr (std::is_same_v) { - if (delayInt >= 1) + if (delayFrac < (SampleType) 2.0 && delayInt >= 1) { delayFrac++; delayInt--;