fixed bug in DelayA :: setMaximumDelay

inputs_ needs to be set to all zeros
This commit is contained in:
Abhi
2014-09-13 19:25:08 -04:00
parent bc3cfa8fb5
commit 20b9411a5a

View File

@@ -59,7 +59,7 @@ void DelayA :: clear()
void DelayA :: setMaximumDelay( unsigned long delay ) void DelayA :: setMaximumDelay( unsigned long delay )
{ {
if ( delay < inputs_.size() ) return; if ( delay < inputs_.size() ) return;
inputs_.resize( delay + 1 ); inputs_.resize(delay + 1, 1, 0.0);
} }
void DelayA :: setDelay( StkFloat delay ) void DelayA :: setDelay( StkFloat delay )