comparison plugin/FeatureExtractionPluginFactory.h @ 1040:a1cd5abcb38b cxx11

Introduce and use a samplerate type
author Chris Cannam
date Wed, 04 Mar 2015 12:01:04 +0000
parents b4a8d8221eaf
children bff23ef9407e
comparison
equal deleted inserted replaced
1039:b14064bd1f97 1040:a1cd5abcb38b
21 #include <map> 21 #include <map>
22 22
23 #include <vamp-hostsdk/Plugin.h> 23 #include <vamp-hostsdk/Plugin.h>
24 24
25 #include "base/Debug.h" 25 #include "base/Debug.h"
26 #include "base/BaseTypes.h"
26 27
27 class FeatureExtractionPluginFactory 28 class FeatureExtractionPluginFactory
28 { 29 {
29 public: 30 public:
30 virtual ~FeatureExtractionPluginFactory() { } 31 virtual ~FeatureExtractionPluginFactory() { }
40 virtual QString findPluginFile(QString soname, QString inDir = ""); 41 virtual QString findPluginFile(QString soname, QString inDir = "");
41 42
42 // We don't set blockSize or channels on this -- they're 43 // We don't set blockSize or channels on this -- they're
43 // negotiated and handled via initialize() on the plugin 44 // negotiated and handled via initialize() on the plugin
44 virtual Vamp::Plugin *instantiatePlugin(QString identifier, 45 virtual Vamp::Plugin *instantiatePlugin(QString identifier,
45 float inputSampleRate); 46 sv_samplerate_t inputSampleRate);
46 47
47 /** 48 /**
48 * Get category metadata about a plugin (without instantiating it). 49 * Get category metadata about a plugin (without instantiating it).
49 */ 50 */
50 virtual QString getPluginCategory(QString identifier); 51 virtual QString getPluginCategory(QString identifier);