diff vamp-sdk/Plugin.h @ 500:4a86f866bb6b

The PluginRateExtractor hack was exploiting undefined behaviour. Let's just give in and make that API official
author Chris Cannam
date Mon, 11 Dec 2017 13:22:11 +0000
parents e43186ff8854
children
line wrap: on
line diff
--- a/vamp-sdk/Plugin.h	Mon Dec 11 09:27:57 2017 +0000
+++ b/vamp-sdk/Plugin.h	Mon Dec 11 13:22:11 2017 +0000
@@ -437,6 +437,11 @@
      */
     virtual std::string getType() const { return "Feature Extraction Plugin"; }
 
+    /**
+     * Retrieve the input sample rate set on construction.
+     */
+    float getInputSampleRate() const { return m_inputSampleRate; }
+    
 protected:
     Plugin(float inputSampleRate) :
 	m_inputSampleRate(inputSampleRate) { }