aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/LV2/src/Average/Average.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/LV2/src/Average/Average.cpp')
-rw-r--r--plugins/LV2/src/Average/Average.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/LV2/src/Average/Average.cpp b/plugins/LV2/src/Average/Average.cpp
index 5155b16..b485576 100644
--- a/plugins/LV2/src/Average/Average.cpp
+++ b/plugins/LV2/src/Average/Average.cpp
@@ -7,6 +7,18 @@ Average::Average(double rate)
{
}
+void Average::activate()
+{
+ for(int count = 0; count < 11; count++) {
+ bL[count] = 0.0;
+ bR[count] = 0.0;
+ f[count] = 0.0;
+ }
+
+ fpNShapeL = 0.0;
+ fpNShapeR = 0.0;
+}
+
void Average::run(uint32_t num_samples)
{
A = *params[0];