Small bug in JuceDemoPlugin

2 posts / 0 new
Last post
ckk
Offline
Last seen: 1 week 2 days ago
Joined: 20 May 2010 - 19:43
Small bug in JuceDemoPlugin

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

jules
Online
Last seen: 3 min 42 sec ago
Joined: 29 Apr 2013 - 18:37
Re: Small bug in JuceDemoPlugin

Doh! Thanks!