comparison plugin/LADSPAPluginInstance.cpp @ 66:7afcfe666910

* Modify to use Vamp SDK for proper feature extraction plugins. Requires that the vamp-plugin-sdk directory tree be present below plugin/ (it's separate in Subversion).
author Chris Cannam
date Fri, 31 Mar 2006 15:56:35 +0000
parents 33285f426852
children c983dda79f72
comparison
equal deleted inserted replaced
65:e1aad27029e3 66:7afcfe666910
222 222
223 size_t 223 size_t
224 LADSPAPluginInstance::getLatency() 224 LADSPAPluginInstance::getLatency()
225 { 225 {
226 if (m_latencyPort) { 226 if (m_latencyPort) {
227 if (!m_run) run(RealTime::zeroTime); 227 if (!m_run) run(Vamp::RealTime::zeroTime);
228 if (*m_latencyPort > 0) return (size_t)*m_latencyPort; 228 if (*m_latencyPort > 0) return (size_t)*m_latencyPort;
229 } 229 }
230 return 0; 230 return 0;
231 } 231 }
232 232
439 return 0.0f; 439 return 0.0f;
440 } 440 }
441 } 441 }
442 442
443 void 443 void
444 LADSPAPluginInstance::run(const RealTime &) 444 LADSPAPluginInstance::run(const Vamp::RealTime &)
445 { 445 {
446 if (!m_descriptor || !m_descriptor->run) return; 446 if (!m_descriptor || !m_descriptor->run) return;
447 447
448 for (std::vector<LADSPA_Handle>::iterator hi = m_instanceHandles.begin(); 448 for (std::vector<LADSPA_Handle>::iterator hi = m_instanceHandles.begin();
449 hi != m_instanceHandles.end(); ++hi) { 449 hi != m_instanceHandles.end(); ++hi) {