Small bug in JuceDemoPlugin


#1

Hi Jules,

when inserting the demo plugin in a DAW, it produces decaying clicks. This is due to reading outside the delayBuffer’s bounds.
Changing if (++dp > delayBuffer.getNumSamples())
to if (++dp >= delayBuffer.getNumSamples())
in PluginProcessor.cpp (about line 260 in processBlock()) fixes it.

Chris


#2

Doh! Thanks!