Mercurial > hg > svcore
diff transform/ModelTransformerFactory.cpp @ 1264:a99641535e02 3.0-integration
Debug output improvements, and make the checker actually attempt to call the descriptor function for known plugin types
author | Chris Cannam |
---|---|
date | Wed, 16 Nov 2016 16:12:42 +0000 |
parents | ba16388b937d |
children | ca43c4b7719c |
line wrap: on
line diff
--- a/transform/ModelTransformerFactory.cpp Tue Nov 15 16:54:02 2016 +0000 +++ b/transform/ModelTransformerFactory.cpp Wed Nov 16 16:12:42 2016 +0000 @@ -89,12 +89,14 @@ bool ok = true; QString configurationXml = m_lastConfigurations[transform.getIdentifier()]; - cerr << "last configuration: " << configurationXml << endl; + SVDEBUG << "ModelTransformer: last configuration for identifier " << transform.getIdentifier() << ": " << configurationXml << endl; Vamp::PluginBase *plugin = 0; if (RealTimePluginFactory::instanceFor(id)) { + SVDEBUG << "ModelTransformerFactory::getConfigurationForTransform: instantiating real-time plugin" << endl; + RealTimePluginFactory *factory = RealTimePluginFactory::instanceFor(id); sv_samplerate_t sampleRate = inputModel->getSampleRate(); @@ -113,7 +115,7 @@ } else { - cerr << "getConfigurationForTransform: instantiating Vamp plugin" << endl; + SVDEBUG << "ModelTransformerFactory::getConfigurationForTransform: instantiating Vamp plugin" << endl; Vamp::Plugin *vp = FeatureExtractionPluginFactory::instance()->instantiatePlugin @@ -152,6 +154,8 @@ configurationXml = PluginXml(plugin).toXmlString(); + SVDEBUG << "ModelTransformerFactory::getConfigurationForTransform: got configuration, deleting plugin" << endl; + delete plugin; }