aboutsummaryrefslogtreecommitdiffstats
path: root/src/mdaTestTone.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-08-09 04:33:55 +0000
committerDavid Robillard <d@drobilla.net>2008-08-09 04:33:55 +0000
commitf652720d0dc24a1951e66e28486e856b424d68df (patch)
tree2c4c0c6aa6d62a1e82dded86c5d52a179b56e766 /src/mdaTestTone.cpp
parent40d6f1f30e067af50e6fd9546f04533463dfea2a (diff)
downloadmda.lv2-f652720d0dc24a1951e66e28486e856b424d68df.tar.gz
mda.lv2-f652720d0dc24a1951e66e28486e856b424d68df.tar.bz2
mda.lv2-f652720d0dc24a1951e66e28486e856b424d68df.zip
Fix bugs.
Tighten up code. Crank up warnings to absurdly strict and pedantic level in order to figure out WTF is going on with audio. git-svn-id: http://svn.drobilla.net/lad/mda-lv2@1328 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/mdaTestTone.cpp')
-rw-r--r--src/mdaTestTone.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mdaTestTone.cpp b/src/mdaTestTone.cpp
index 3748109..f74139e 100644
--- a/src/mdaTestTone.cpp
+++ b/src/mdaTestTone.cpp
@@ -75,11 +75,11 @@ void mdaTestTone::setParameter(LvzInt32 index, float value)
//just update display text...
- int mode = int(8.9 * fParam0);
+ int this_mode = int(8.9 * fParam0);
float f, df=0.0f;
if(fParam4>0.6) df = 1.25f*fParam4 - 0.75f;
if(fParam4<0.4) df = 1.25f*fParam4 - 0.50f;
- switch(mode)
+ switch(this_mode)
{
case 0: //MIDI note
f = (float)floor(128.f*fParam3);