comparison runner/FeatureExtractionManager.h @ 47:91d20795a109

* Make --force work correctly for playlists
author Chris Cannam
date Wed, 02 Mar 2011 15:27:21 +0000
parents 69c438d4b9d3
children fae326c22df5
comparison
equal deleted inserted replaced
46:4d07f61dba3f 47:91d20795a109
55 const vector<FeatureWriter*> &writers); 55 const vector<FeatureWriter*> &writers);
56 56
57 bool addDefaultFeatureExtractor(TransformId transformId, 57 bool addDefaultFeatureExtractor(TransformId transformId,
58 const vector<FeatureWriter*> &writers); 58 const vector<FeatureWriter*> &writers);
59 59
60 // Make a note of an audio or playlist file which will be passed
61 // to extractFeatures later. Amongst other things, this may
62 // initialise the default sample rate and channel count
60 void addSource(QString audioSource); 63 void addSource(QString audioSource);
61 void extractFeatures(QString audioSource); 64
65 // Extract features from the given audio or playlist file. If the
66 // file is a playlist and force is true, continue extracting even
67 // if a file in the playlist fails.
68 void extractFeatures(QString audioSource, bool force);
62 69
63 private: 70 private:
64 // A plugin may have many outputs, so we can have more than one 71 // A plugin may have many outputs, so we can have more than one
65 // transform requested for a single plugin. The things we want to 72 // transform requested for a single plugin. The things we want to
66 // run in our process loop are plugins rather than their outputs, 73 // run in our process loop are plugins rather than their outputs,