Mercurial > hg > svcore
comparison plugin/DSSIPluginInstance.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 |
comparison
equal
deleted
inserted
replaced
349:f39d33b0b265 | 383:94fc0591ea43 |
---|---|
829 } else { | 829 } else { |
830 return 0.0f; | 830 return 0.0f; |
831 } | 831 } |
832 } | 832 } |
833 | 833 |
834 int | |
835 DSSIPluginInstance::getParameterDisplayHint(unsigned int parameter) const | |
836 { | |
837 if (parameter >= m_controlPortsIn.size()) return 0.0; | |
838 | |
839 LADSPAPluginFactory *f = dynamic_cast<LADSPAPluginFactory *>(m_factory); | |
840 if (f) { | |
841 return f->getPortDisplayHint(m_descriptor->LADSPA_Plugin, | |
842 m_controlPortsIn[parameter].first); | |
843 } else { | |
844 return PortHint::NoHint; | |
845 } | |
846 } | |
847 | |
834 std::string | 848 std::string |
835 DSSIPluginInstance::configure(std::string key, | 849 DSSIPluginInstance::configure(std::string key, |
836 std::string value) | 850 std::string value) |
837 { | 851 { |
838 if (!m_descriptor || !m_descriptor->configure) return std::string(); | 852 if (!m_descriptor || !m_descriptor->configure) return std::string(); |