diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-02-02 08:22:21 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-02-02 08:22:21 +0000 |
| commit | 98233aa76d03790fcdb813d98dd872df466f6afd (patch) | |
| tree | 4ec71c8e1fe5695820dce5688f36cbe7042a0cb9 /src/plugins/Effect | |
| parent | bef7779cf487577a061874facc67c6d09ac44e7d (diff) | |
| download | qmmp-98233aa76d03790fcdb813d98dd872df466f6afd.tar.gz qmmp-98233aa76d03790fcdb813d98dd872df466f6afd.tar.bz2 qmmp-98233aa76d03790fcdb813d98dd872df466f6afd.zip | |
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
Diffstat (limited to 'src/plugins/Effect')
| -rw-r--r-- | src/plugins/Effect/ladspa/ladspahost.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
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; } |
