From 4d49ac00947443a2cc259119b175b276cdbbf91f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 23 Sep 2011 22:27:56 +0000 Subject: Fix use of uninitialized value. Remove unused member variables. git-svn-id: http://svn.drobilla.net/lad/trunk/plugins/mdala.lv2@3481 a436a847-0d15-0410-975c-d299462d15a1 --- src/mdaBandisto.cpp | 1 + src/mdaBandisto.h | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/mdaBandisto.cpp b/src/mdaBandisto.cpp index d5005b8..82282ca 100644 --- a/src/mdaBandisto.cpp +++ b/src/mdaBandisto.cpp @@ -79,6 +79,7 @@ mdaBandisto::mdaBandisto(audioMasterCallback audioMaster) : AudioEffectX(audioMa } fi1 = (float)pow(10.0,fParam2 - 1.70); fo1=(float)(1.0 - fi1); fi2 = (float)pow(10.0,fParam3 - 1.05); fo2=(float)(1.0 - fi2); + fb1 = fb2 = fb3 = 0.0f; } mdaBandisto::~mdaBandisto() diff --git a/src/mdaBandisto.h b/src/mdaBandisto.h index 2e8463a..8d3b753 100644 --- a/src/mdaBandisto.h +++ b/src/mdaBandisto.h @@ -47,9 +47,9 @@ protected: float fParam1, fParam2, fParam3, fParam4; float fParam5, fParam6, fParam7, fParam8; float fParam9, fParam10; - float gain1, driv1, trim1; - float gain2, driv2, trim2; - float gain3, driv3, trim3; + float driv1, trim1; + float driv2, trim2; + float driv3, trim3; float fi1, fb1, fo1, fi2, fb2, fo2, fb3, slev; int valve; char programName[32]; -- cgit v1.2.1