Skip to content

Commit

Permalink
DelayLine: Fix early wrapping in Lagrange interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
leonp-s committed Aug 7, 2023
1 parent a4aa739 commit e3f2469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/juce_dsp/processors/juce_DelayLine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ template <typename SampleType, typename InterpolationType>
void DelayLine<SampleType, InterpolationType>::setMaximumDelayInSamples (int maxDelayInSamples)
{
jassert (maxDelayInSamples >= 0);
totalSize = jmax (4, maxDelayInSamples + 1);
totalSize = jmax (4, maxDelayInSamples + 2);
bufferData.setSize ((int) bufferData.getNumChannels(), totalSize, false, false, true);
reset();
}
Expand Down

0 comments on commit e3f2469

Please sign in to comment.