diff src/vamp-hostsdk/PluginBufferingAdapter.cpp @ 268:6579e441f2fe

* Ensure that output descriptors are re-queried after a call to initialise, setParameter or selectProgram (following "What can depend on a parameter?" section of programmers guide)
author cannam
date Tue, 25 Nov 2008 13:16:07 +0000
parents 93c81a6c917a
children 91821a3ab0b6
line wrap: on
line diff
--- a/src/vamp-hostsdk/PluginBufferingAdapter.cpp	Tue Nov 25 12:34:45 2008 +0000
+++ b/src/vamp-hostsdk/PluginBufferingAdapter.cpp	Tue Nov 25 13:16:07 2008 +0000
@@ -475,6 +475,8 @@
     
     bool success = m_plugin->initialise(m_channels, m_stepSize, m_blockSize);
 
+    std::cerr << "PluginBufferingAdapter::initialise: success = " << success << std::endl;
+
     if (success) {
         // Re-query outputs; properties such as bin count may have
         // changed on initialise
@@ -489,6 +491,8 @@
 PluginBufferingAdapter::Impl::getOutputDescriptors() const
 {
     if (m_outputs.empty()) {
+    std::cerr << "PluginBufferingAdapter::getOutputDescriptors: querying anew" << std::endl;
+
         m_outputs = m_plugin->getOutputDescriptors();
     }