Mercurial > hg > svcore
comparison transform/ModelTransformerFactory.cpp @ 843:e802e550a1f2
Drop std:: from cout, cerr, endl -- pull these in through Debug.h
author | Chris Cannam |
---|---|
date | Tue, 26 Nov 2013 13:35:08 +0000 |
parents | 1424aa29ae95 |
children | 2d53205f70cd |
comparison
equal
deleted
inserted
replaced
842:23d3a6eca5c3 | 843:e802e550a1f2 |
---|---|
85 QString id = transform.getPluginIdentifier(); | 85 QString id = transform.getPluginIdentifier(); |
86 | 86 |
87 bool ok = true; | 87 bool ok = true; |
88 QString configurationXml = m_lastConfigurations[transform.getIdentifier()]; | 88 QString configurationXml = m_lastConfigurations[transform.getIdentifier()]; |
89 | 89 |
90 std::cerr << "last configuration: " << configurationXml << std::endl; | 90 cerr << "last configuration: " << configurationXml << endl; |
91 | 91 |
92 Vamp::PluginBase *plugin = 0; | 92 Vamp::PluginBase *plugin = 0; |
93 | 93 |
94 if (FeatureExtractionPluginFactory::instanceFor(id)) { | 94 if (FeatureExtractionPluginFactory::instanceFor(id)) { |
95 | 95 |
96 std::cerr << "getConfigurationForTransform: instantiating Vamp plugin" << std::endl; | 96 cerr << "getConfigurationForTransform: instantiating Vamp plugin" << endl; |
97 | 97 |
98 Vamp::Plugin *vp = | 98 Vamp::Plugin *vp = |
99 FeatureExtractionPluginFactory::instanceFor(id)->instantiatePlugin | 99 FeatureExtractionPluginFactory::instanceFor(id)->instantiatePlugin |
100 (id, inputModel->getSampleRate()); | 100 (id, inputModel->getSampleRate()); |
101 | 101 |
237 ModelTransformer *transformer = dynamic_cast<ModelTransformer *>(s); | 237 ModelTransformer *transformer = dynamic_cast<ModelTransformer *>(s); |
238 | 238 |
239 // SVDEBUG << "ModelTransformerFactory::transformerFinished(" << transformer << ")" << endl; | 239 // SVDEBUG << "ModelTransformerFactory::transformerFinished(" << transformer << ")" << endl; |
240 | 240 |
241 if (!transformer) { | 241 if (!transformer) { |
242 std::cerr << "WARNING: ModelTransformerFactory::transformerFinished: sender is not a transformer" << std::endl; | 242 cerr << "WARNING: ModelTransformerFactory::transformerFinished: sender is not a transformer" << endl; |
243 return; | 243 return; |
244 } | 244 } |
245 | 245 |
246 if (m_runningTransformers.find(transformer) == m_runningTransformers.end()) { | 246 if (m_runningTransformers.find(transformer) == m_runningTransformers.end()) { |
247 std::cerr << "WARNING: ModelTransformerFactory::transformerFinished(" | 247 cerr << "WARNING: ModelTransformerFactory::transformerFinished(" |
248 << transformer | 248 << transformer |
249 << "): I have no record of this transformer running!" | 249 << "): I have no record of this transformer running!" |
250 << std::endl; | 250 << endl; |
251 } | 251 } |
252 | 252 |
253 m_runningTransformers.erase(transformer); | 253 m_runningTransformers.erase(transformer); |
254 | 254 |
255 transformer->wait(); // unnecessary but reassuring | 255 transformer->wait(); // unnecessary but reassuring |