1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +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 8ed3618e12
commit 61a4a3785a

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--;