Mercurial > hg > svcore
comparison plugin/DSSIPluginInstance.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 | 
|---|---|
| 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(); | 
