diff --git a/src/DelayA.cpp b/src/DelayA.cpp index dde8293..6f48548 100644 --- a/src/DelayA.cpp +++ b/src/DelayA.cpp @@ -59,7 +59,7 @@ void DelayA :: clear() void DelayA :: setMaximumDelay( unsigned long delay ) { if ( delay < inputs_.size() ) return; - inputs_.resize( delay + 1 ); + inputs_.resize(delay + 1, 1, 0.0); } void DelayA :: setDelay( StkFloat delay ) diff --git a/src/DelayL.cpp b/src/DelayL.cpp index b3d2fbd..7990bb7 100644 --- a/src/DelayL.cpp +++ b/src/DelayL.cpp @@ -49,7 +49,7 @@ DelayL :: ~DelayL() void DelayL :: setMaximumDelay( unsigned long delay ) { if ( delay < inputs_.size() ) return; - inputs_.resize( delay + 1 ); + inputs_.resize(delay + 1, 1, 0.0); } void DelayL :: setDelay( StkFloat delay )