Mercurial > hg > sonic-annotator
diff 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 |
line wrap: on
line diff
--- a/runner/FeatureExtractionManager.h Mon Oct 18 14:19:11 2010 +0100 +++ b/runner/FeatureExtractionManager.h Wed Mar 02 15:27:21 2011 +0000 @@ -57,8 +57,15 @@ bool addDefaultFeatureExtractor(TransformId transformId, const vector<FeatureWriter*> &writers); + // Make a note of an audio or playlist file which will be passed + // to extractFeatures later. Amongst other things, this may + // initialise the default sample rate and channel count void addSource(QString audioSource); - void extractFeatures(QString audioSource); + + // Extract features from the given audio or playlist file. If the + // file is a playlist and force is true, continue extracting even + // if a file in the playlist fails. + void extractFeatures(QString audioSource, bool force); private: // A plugin may have many outputs, so we can have more than one