Mercurial > hg > sonic-annotator
diff runner/FeatureExtractionManager.h @ 45:69c438d4b9d3
* Pick up default sample rate and channel count from first audio file
(formerly they were hardcoded to 44100 and 1...)
author | Chris Cannam |
---|---|
date | Mon, 18 Oct 2010 14:17:48 +0100 |
parents | 8b20521fc40f |
children | 91d20795a109 |
line wrap: on
line diff
--- a/runner/FeatureExtractionManager.h Mon Oct 18 14:16:17 2010 +0100 +++ b/runner/FeatureExtractionManager.h Mon Oct 18 14:17:48 2010 +0100 @@ -20,6 +20,8 @@ #include <set> #include <string> +#include <QMap> + #include <vamp-hostsdk/Plugin.h> #include <vamp-hostsdk/PluginSummarisingAdapter.h> #include <transform/Transform.h> @@ -31,6 +33,7 @@ using std::map; class FeatureWriter; +class AudioFileReader; class FeatureExtractionManager { @@ -54,6 +57,7 @@ bool addDefaultFeatureExtractor(TransformId transformId, const vector<FeatureWriter*> &writers); + void addSource(QString audioSource); void extractFeatures(QString audioSource); private: @@ -105,6 +109,8 @@ int m_defaultSampleRate; int m_sampleRate; int m_channels; + + QMap<QString, AudioFileReader *> m_readyReaders; void print(Transform transform) const; };