1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-30 02:50:05 +00:00

DelayLine: Fix a bug in Lagrange interpolation

This commit is contained in:
Tom Poole 2023-05-22 16:51:50 +01:00
parent 69795dc8e5
commit 600881f373

View file

@ -283,7 +283,7 @@ private:
{
if constexpr (std::is_same_v<InterpolationType, DelayLineInterpolationTypes::Lagrange3rd>)
{
if (delayInt >= 1)
if (delayFrac < (SampleType) 2.0 && delayInt >= 1)
{
delayFrac++;
delayInt--;