From bc3cfa8fb510cb64148c6285b4b0a3d6cdf1bc14 Mon Sep 17 00:00:00 2001 From: Abhi Date: Sat, 13 Sep 2014 18:01:26 -0400 Subject: [PATCH 1/2] fixed bug in DelayL :: setMaximumDelay need to initialize values to zero --- src/DelayL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) From 20b9411a5ad27c3a6c22db564b1d3098775e5632 Mon Sep 17 00:00:00 2001 From: Abhi Date: Sat, 13 Sep 2014 19:25:08 -0400 Subject: [PATCH 2/2] fixed bug in DelayA :: setMaximumDelay inputs_ needs to be set to all zeros --- src/DelayA.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 )