Merge pull request #33 from Ahbee/BugFix_DelayL

Bug fix in delayL and delayA
This commit is contained in:
garyscavone
2014-09-19 08:17:51 -04:00
2 changed files with 2 additions and 2 deletions

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 )

View File

@@ -49,7 +49,7 @@ DelayL :: ~DelayL()
void DelayL :: setMaximumDelay( unsigned long delay ) void DelayL :: 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 DelayL :: setDelay( StkFloat delay ) void DelayL :: setDelay( StkFloat delay )