comparison plugin/LADSPAPluginInstance.cpp @ 384:6f6ab834449d spectrogram-cache-rejig

* Merge from trunk
author Chris Cannam
date Wed, 27 Feb 2008 11:59:42 +0000
parents dc46851837d6
children 9b35a1731c3d
comparison
equal deleted inserted replaced
337:a6fab10ff9e6 384:6f6ab834449d
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