comparison plugin/LADSPAPluginInstance.cpp @ 356:ca3b91119482

* fix support for logarithmic hints in plugin parameters
author Chris Cannam
date Mon, 17 Dec 2007 12:32:28 +0000
parents dc46851837d6
children 9b35a1731c3d
comparison
equal deleted inserted replaced
355:d02f71281639 356:ca3b91119482
513 } else { 513 } else {
514 return 0.0f; 514 return 0.0f;
515 } 515 }
516 } 516 }
517 517
518 int
519 LADSPAPluginInstance::getParameterDisplayHint(unsigned int parameter) const
520 {
521 if (parameter >= m_controlPortsIn.size()) return 0.0;
522
523 LADSPAPluginFactory *f = dynamic_cast<LADSPAPluginFactory *>(m_factory);
524 if (f) {
525 return f->getPortDisplayHint(m_descriptor, m_controlPortsIn[parameter].first);
526 } else {
527 return PortHint::NoHint;
528 }
529 }
530
518 void 531 void
519 LADSPAPluginInstance::run(const Vamp::RealTime &) 532 LADSPAPluginInstance::run(const Vamp::RealTime &)
520 { 533 {
521 if (!m_descriptor || !m_descriptor->run) return; 534 if (!m_descriptor || !m_descriptor->run) return;
522 535