Mercurial > hg > svcore
diff plugin/LADSPAPluginInstance.cpp @ 383:94fc0591ea43 1.2-stable
* merge from trunk (1.2 ended up being tracked from trunk, but we may want
this branch for fixes later)
author | Chris Cannam |
---|---|
date | Wed, 27 Feb 2008 10:32:45 +0000 |
parents | dc46851837d6 |
children | 9b35a1731c3d |
line wrap: on
line diff
--- a/plugin/LADSPAPluginInstance.cpp Fri Nov 30 17:36:14 2007 +0000 +++ b/plugin/LADSPAPluginInstance.cpp Wed Feb 27 10:32:45 2008 +0000 @@ -515,6 +515,19 @@ } } +int +LADSPAPluginInstance::getParameterDisplayHint(unsigned int parameter) const +{ + if (parameter >= m_controlPortsIn.size()) return 0.0; + + LADSPAPluginFactory *f = dynamic_cast<LADSPAPluginFactory *>(m_factory); + if (f) { + return f->getPortDisplayHint(m_descriptor, m_controlPortsIn[parameter].first); + } else { + return PortHint::NoHint; + } +} + void LADSPAPluginInstance::run(const Vamp::RealTime &) {