Mercurial > hg > sonic-annotator
comparison runner/FeatureExtractionManager.cpp @ 203:08d492f861e9
More useful report when a transform is completely unknown to us
author | Chris Cannam |
---|---|
date | Tue, 03 Nov 2015 11:36:00 +0000 |
parents | 3b7ec45abd1c |
children | c17b184c16db |
comparison
equal
deleted
inserted
replaced
202:cdd825dbba35 | 203:08d492f861e9 |
---|---|
231 if (!plugin) { | 231 if (!plugin) { |
232 //!!! todo: handle non-Vamp plugins too, or make the main --list | 232 //!!! todo: handle non-Vamp plugins too, or make the main --list |
233 // option print out only Vamp transforms | 233 // option print out only Vamp transforms |
234 cerr << "ERROR: Failed to load plugin for transform \"" | 234 cerr << "ERROR: Failed to load plugin for transform \"" |
235 << transform.getIdentifier().toStdString() << "\"" << endl; | 235 << transform.getIdentifier().toStdString() << "\"" << endl; |
236 if (pb) { | |
237 cerr << "NOTE: (A plugin was loaded, but apparently not a Vamp plugin)" << endl; | |
238 } | |
236 delete pb; | 239 delete pb; |
237 return false; | 240 return false; |
238 } | 241 } |
239 | 242 |
240 // We will provide the plugin with arbitrary step and | 243 // We will provide the plugin with arbitrary step and |
412 } | 415 } |
413 } | 416 } |
414 | 417 |
415 Transform transform = tf->getDefaultTransformFor(transformId, m_sampleRate); | 418 Transform transform = tf->getDefaultTransformFor(transformId, m_sampleRate); |
416 | 419 |
417 return addFeatureExtractor(transform, writers); | 420 bool result = addFeatureExtractor(transform, writers); |
421 if (!result) { | |
422 if (transform.getType() == Transform::UnknownType) { | |
423 cerr << "(Maybe mixed up filename with transform, or --transform with --default?)" << endl; | |
424 } | |
425 } | |
426 return result; | |
418 } | 427 } |
419 | 428 |
420 bool FeatureExtractionManager::addFeatureExtractorFromFile | 429 bool FeatureExtractionManager::addFeatureExtractorFromFile |
421 (QString transformXmlFile, const vector<FeatureWriter*> &writers) | 430 (QString transformXmlFile, const vector<FeatureWriter*> &writers) |
422 { | 431 { |