Mercurial > hg > svcore
diff plugin/LADSPAPluginInstance.cpp @ 385:9b35a1731c3d
* Tolerable fixes to #1903062 and #1903046
author | Chris Cannam |
---|---|
date | Wed, 27 Feb 2008 18:04:10 +0000 |
parents | ca3b91119482 |
children | 47b41ec34407 |
line wrap: on
line diff
--- a/plugin/LADSPAPluginInstance.cpp Fri Feb 15 15:15:29 2008 +0000 +++ b/plugin/LADSPAPluginInstance.cpp Wed Feb 27 18:04:10 2008 +0000 @@ -529,14 +529,16 @@ } void -LADSPAPluginInstance::run(const Vamp::RealTime &) +LADSPAPluginInstance::run(const Vamp::RealTime &, size_t count) { if (!m_descriptor || !m_descriptor->run) return; + if (count == 0) count = m_blockSize; + for (std::vector<LADSPA_Handle>::iterator hi = m_instanceHandles.begin(); hi != m_instanceHandles.end(); ++hi) { - m_descriptor->run(*hi, m_blockSize); + m_descriptor->run(*hi, count); } m_run = true;