diff plugin/FeatureExtractionPluginFactory.cpp @ 1040:a1cd5abcb38b cxx11

Introduce and use a samplerate type
author Chris Cannam
date Wed, 04 Mar 2015 12:01:04 +0000
parents 7aa9088e9bcd
children c7f1300dbf64 bff23ef9407e
line wrap: on
line diff
--- a/plugin/FeatureExtractionPluginFactory.cpp	Tue Mar 03 17:09:19 2015 +0000
+++ b/plugin/FeatureExtractionPluginFactory.cpp	Wed Mar 04 12:01:04 2015 +0000
@@ -299,7 +299,7 @@
 
 Vamp::Plugin *
 FeatureExtractionPluginFactory::instantiatePlugin(QString identifier,
-						  float inputSampleRate)
+						  sv_samplerate_t inputSampleRate)
 {
     Profiler profiler("FeatureExtractionPluginFactory::instantiatePlugin");
 
@@ -357,7 +357,7 @@
         goto done;
     }
 
-    plugin = new Vamp::PluginHostAdapter(descriptor, inputSampleRate);
+    plugin = new Vamp::PluginHostAdapter(descriptor, float(inputSampleRate));
 
     if (plugin) {
         m_handleMap[plugin] = libraryHandle;