Browse Source

Added missing range check to LagrangeInterpolator::process()

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

+ 1
- 1
modules/juce_audio_basics/effects/juce_LagrangeInterpolator.cpp View File

@@ -129,7 +129,7 @@ int LagrangeInterpolator::process (const double actualRatio, const float* in,
}
pos -= actualRatio;
*out++ = LagrangeHelpers::valueAtOffset (lastInputSamples, 1.0f - (float) pos);
*out++ = LagrangeHelpers::valueAtOffset (lastInputSamples, jmax (0.0f, 1.0f - (float) pos));
}
}


Loading…
Cancel
Save