Mercurial > hg > vamp-plugin-sdk
diff src/vamp-hostsdk/PluginBufferingAdapter.cpp @ 269:91821a3ab0b6
* Fix incorrect handling of step & block size in time-domain plugin that
specifies neither
* Add computed_by for features to link back to their transforms
author | cannam |
---|---|
date | Tue, 25 Nov 2008 17:51:12 +0000 |
parents | 6579e441f2fe |
children | e0b7a35ea18e |
line wrap: on
line diff
--- a/src/vamp-hostsdk/PluginBufferingAdapter.cpp Tue Nov 25 13:16:07 2008 +0000 +++ b/src/vamp-hostsdk/PluginBufferingAdapter.cpp Tue Nov 25 17:51:12 2008 +0000 @@ -438,6 +438,11 @@ if (m_blockSize == 0) { if (m_stepSize == 0) { m_blockSize = 1024; + if (freq) { + m_stepSize = m_blockSize / 2; + } else { + m_stepSize = m_blockSize; + } } else if (freq) { m_blockSize = m_stepSize * 2; } else { @@ -475,7 +480,7 @@ bool success = m_plugin->initialise(m_channels, m_stepSize, m_blockSize); - std::cerr << "PluginBufferingAdapter::initialise: success = " << success << std::endl; +// std::cerr << "PluginBufferingAdapter::initialise: success = " << success << std::endl; if (success) { // Re-query outputs; properties such as bin count may have @@ -491,7 +496,7 @@ PluginBufferingAdapter::Impl::getOutputDescriptors() const { if (m_outputs.empty()) { - std::cerr << "PluginBufferingAdapter::getOutputDescriptors: querying anew" << std::endl; +// std::cerr << "PluginBufferingAdapter::getOutputDescriptors: querying anew" << std::endl; m_outputs = m_plugin->getOutputDescriptors(); }