comparison plugin/LADSPAPluginFactory.cpp @ 357:b92513201610

* better progress reporting in FileSource * fix set-to-default for audio dials with mappers
author Chris Cannam
date Fri, 04 Jan 2008 17:08:10 +0000
parents ca3b91119482
children 115f60df1e4d
comparison
equal deleted inserted replaced
356:ca3b91119482 357:b92513201610
149 149
150 float minimum = 0.0; 150 float minimum = 0.0;
151 151
152 if (LADSPA_IS_HINT_BOUNDED_BELOW(d)) { 152 if (LADSPA_IS_HINT_BOUNDED_BELOW(d)) {
153 float lb = descriptor->PortRangeHints[port].LowerBound; 153 float lb = descriptor->PortRangeHints[port].LowerBound;
154 std::cerr << "LADSPAPluginFactory::getPortMinimum: bounded below at " << lb << std::endl;
155 minimum = lb; 154 minimum = lb;
156 } else if (LADSPA_IS_HINT_BOUNDED_ABOVE(d)) { 155 } else if (LADSPA_IS_HINT_BOUNDED_ABOVE(d)) {
157 float ub = descriptor->PortRangeHints[port].UpperBound; 156 float ub = descriptor->PortRangeHints[port].UpperBound;
158 minimum = std::min(0.0, ub - 1.0); 157 minimum = std::min(0.0, ub - 1.0);
159 } 158 }
223 else logmin = log10f(minimum); 222 else logmin = log10f(minimum);
224 if (maximum < thresh) logmax = -10; 223 if (maximum < thresh) logmax = -10;
225 else logmax = log10f(maximum); 224 else logmax = log10f(maximum);
226 } 225 }
227 226
228 std::cerr << "LADSPAPluginFactory::getPortDefault: hint = " << d << std::endl; 227 // std::cerr << "LADSPAPluginFactory::getPortDefault: hint = " << d << std::endl;
229 228
230 if (!LADSPA_IS_HINT_HAS_DEFAULT(d)) { 229 if (!LADSPA_IS_HINT_HAS_DEFAULT(d)) {
231 230
232 deft = minimum; 231 deft = minimum;
233 232