Skip to content

Commit

Permalink
Fix delay line out-of-bounds port access
Browse files Browse the repository at this point in the history
  • Loading branch information
DomClark committed May 10, 2024
1 parent fc87e92 commit 1ad4f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/delay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class DelayLine : public CMT_PluginInstance {

DelayLine(const unsigned long lSampleRate,
const LADSPA_Data fMaximumDelay)
: CMT_PluginInstance(4),
: CMT_PluginInstance(5),
m_fSampleRate(LADSPA_Data(lSampleRate)),
m_fMaximumDelay(fMaximumDelay) {
/* Buffer size is a power of two bigger than max delay time. */
Expand Down

0 comments on commit 1ad4f02

Please sign in to comment.