# HG changeset patch # User Chris Cannam # Date 1479312762 0 # Node ID 36aa947ec9629108da8abe39b37fb97c1e989514 # Parent 47db3b8f406360cbcfd7bef087ccf893b3c1c0e2 Debug output improvements, and make the checker actually attempt to call the descriptor function for known plugin types diff -r 47db3b8f4063 -r 36aa947ec962 framework/Document.cpp --- a/framework/Document.cpp Fri Nov 04 14:57:03 2016 +0000 +++ b/framework/Document.cpp Wed Nov 16 16:12:42 2016 +0000 @@ -740,6 +740,10 @@ // remember is correct for what was actually applied, with the // current plugin version. + //!!! would be nice to short-circuit this -- the version is + //!!! static data, shouldn't have to construct a plugin for it + //!!! (which may be expensive in Piper-world) + Transform applied = transforms[j]; applied.setPluginVersion (TransformFactory::getInstance()-> diff -r 47db3b8f4063 -r 36aa947ec962 framework/TransformUserConfigurator.cpp --- a/framework/TransformUserConfigurator.cpp Fri Nov 04 14:57:03 2016 +0000 +++ b/framework/TransformUserConfigurator.cpp Wed Nov 16 16:12:42 2016 +0000 @@ -45,12 +45,12 @@ { if (plugin && plugin->getType() == "Feature Extraction Plugin") { Vamp::Plugin *vp = static_cast(plugin); - SVDEBUG << "TransformUserConfigurator::getChannelRange: is a VP" << endl; + SVDEBUG << "TransformUserConfigurator::getChannelRange: is a Vamp plugin" << endl; minChannels = int(vp->getMinChannelCount()); maxChannels = int(vp->getMaxChannelCount()); return true; } else { - SVDEBUG << "TransformUserConfigurator::getChannelRange: is not a VP" << endl; + SVDEBUG << "TransformUserConfigurator::getChannelRange: is not a Vamp plugin" << endl; return TransformFactory::getInstance()-> getTransformChannelRange(identifier, minChannels, maxChannels); } @@ -80,6 +80,8 @@ if (!plugin) return false; + SVDEBUG << "TransformUserConfigurator::configure: identifier " << id << endl; + if (RealTimePluginFactory::instanceFor(id)) { RealTimePluginFactory *factory = RealTimePluginFactory::instanceFor(id); @@ -119,7 +121,7 @@ std::vector od = vp->getOutputDescriptors(); - cerr << "configure: looking for output: " << output << endl; +// cerr << "configure: looking for output: " << output << endl; if (od.size() > 1) { for (size_t i = 0; i < od.size(); ++i) { @@ -182,12 +184,12 @@ if (selectedInput != "") { if (modelMap.contains(selectedInput)) { inputModel = modelMap.value(selectedInput); - cerr << "Found selected input \"" << selectedInput << "\" in model map, result is " << inputModel << endl; + SVDEBUG << "Found selected input \"" << selectedInput << "\" in model map, result is " << inputModel << endl; } else { - cerr << "Failed to find selected input \"" << selectedInput << "\" in model map" << endl; + SVDEBUG << "Failed to find selected input \"" << selectedInput << "\" in model map" << endl; } } else { - cerr << "Selected input empty: \"" << selectedInput << "\"" << endl; + SVDEBUG << "Selected input empty: \"" << selectedInput << "\"" << endl; } // Write parameters back to transform object