Mercurial > hg > svcore
comparison 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 |
comparison
equal
deleted
inserted
replaced
382:9867f99e0bb7 | 385:9b35a1731c3d |
---|---|
527 return PortHint::NoHint; | 527 return PortHint::NoHint; |
528 } | 528 } |
529 } | 529 } |
530 | 530 |
531 void | 531 void |
532 LADSPAPluginInstance::run(const Vamp::RealTime &) | 532 LADSPAPluginInstance::run(const Vamp::RealTime &, size_t count) |
533 { | 533 { |
534 if (!m_descriptor || !m_descriptor->run) return; | 534 if (!m_descriptor || !m_descriptor->run) return; |
535 | |
536 if (count == 0) count = m_blockSize; | |
535 | 537 |
536 for (std::vector<LADSPA_Handle>::iterator hi = m_instanceHandles.begin(); | 538 for (std::vector<LADSPA_Handle>::iterator hi = m_instanceHandles.begin(); |
537 hi != m_instanceHandles.end(); ++hi) { | 539 hi != m_instanceHandles.end(); ++hi) { |
538 | 540 |
539 m_descriptor->run(*hi, m_blockSize); | 541 m_descriptor->run(*hi, count); |
540 } | 542 } |
541 | 543 |
542 m_run = true; | 544 m_run = true; |
543 } | 545 } |
544 | 546 |