changeset 25:af5e469ac654

* print a bit more info for diagnostic purposes
author Chris Cannam
date Thu, 10 Sep 2009 15:25:58 +0000 (2009-09-10)
parents 18c42fbc1335
children 0af07912f386
files runner/FeatureExtractionManager.cpp
diffstat 1 files changed, 15 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/runner/FeatureExtractionManager.cpp	Tue Sep 08 16:51:24 2009 +0000
+++ b/runner/FeatureExtractionManager.cpp	Thu Sep 10 15:25:58 2009 +0000
@@ -203,9 +203,12 @@
             size_t pluginStepSize = plugin->getPreferredStepSize();
             size_t pluginBlockSize = plugin->getPreferredBlockSize();
 
+            PluginInputDomainAdapter *pida = 0;
+
             // adapt the plugin for buffering, channels, etc.
             if (plugin->getInputDomain() == Plugin::FrequencyDomain) {
-                plugin = new PluginInputDomainAdapter(plugin);
+                pida = new PluginInputDomainAdapter(plugin);
+                plugin = pida;
             }
 
             PluginBufferingAdapter *pba = new PluginBufferingAdapter(plugin);
@@ -257,7 +260,17 @@
             }
 
             cerr << "NOTE: Loaded and initialised plugin for transform \""
-                 << transform.getIdentifier().toStdString() << "\"" << endl;
+                 << transform.getIdentifier().toStdString()
+                 << "\" with plugin step size " << actualStepSize
+                 << " and block size " << actualBlockSize
+                 << " (adapter step and block size " << m_blockSize << ")"
+                 << endl;
+
+            if (pida) {
+                cerr << "NOTE: PluginInputDomainAdapter timestamp adjustment is "
+
+                     << pida->getTimestampAdjustment() << endl;
+            }
 
         } else {