Browse Source

Fix for LagrangeInterpolator

tags/2021-05-28
jules 6 years ago
parent
commit
8abd45b099
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      modules/juce_audio_basics/effects/juce_LagrangeInterpolator.cpp

+ 8
- 0
modules/juce_audio_basics/effects/juce_LagrangeInterpolator.cpp View File

@@ -242,6 +242,10 @@ namespace
}
subSamplePos = pos;
if (wrap == 0)
return (int) (in - originalIn);
return ((int) (in - originalIn) + wrap) % wrap;
}
@@ -353,6 +357,10 @@ namespace
}
subSamplePos = pos;
if (wrap == 0)
return (int) (in - originalIn);
return ((int) (in - originalIn) + wrap) % wrap;
}


Loading…
Cancel
Save