From 98233aa76d03790fcdb813d98dd872df466f6afd Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 2 Feb 2013 08:22:21 +0000 Subject: fixed gcc 4.7 warnings, replaced deprecated functions git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3197 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Effect/ladspa/ladspahost.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/plugins/Effect/ladspa/ladspahost.cpp') diff --git a/src/plugins/Effect/ladspa/ladspahost.cpp b/src/plugins/Effect/ladspa/ladspahost.cpp index 785502e50..730088bff 100644 --- a/src/plugins/Effect/ladspa/ladspahost.cpp +++ b/src/plugins/Effect/ladspa/ladspahost.cpp @@ -435,7 +435,6 @@ void LADSPAHost::initialize(LADSPAEffect *instance) const LADSPA_Descriptor *plugin = instance->descriptor; const LADSPA_PortRangeHint *hints = plugin->PortRangeHints; LADSPA_Data fact, min, max, step, start; - int dp; for (unsigned long k = 0; k < MAX_KNOBS && k < plugin->PortCount; ++k) { @@ -474,41 +473,35 @@ void LADSPAHost::initialize(LADSPAEffect *instance) /* infinity */ if (10000.0f <= max - min) { - dp = 1; step = 5.0f; /* 100.0 ... lots */ } else if (100.0f < max - min) { - dp = 0; step = 5.0f; /* 10.0 ... 100.0 */ } else if (10.0f < max - min) { - dp = 1; step = 0.5f; /* 1.0 ... 10.0 */ } else if (1.0f < max - min) { - dp = 2; step = 0.05f; /* 0.0 ... 1.0 */ } else { - dp = 3; step = 0.005f; } if (LADSPA_IS_HINT_INTEGER(hints[k].HintDescriptor)) { - dp = 0; if (step < 1.0f) step = 1.0f; } -- cgit v1.2.3-13-gbd6f