diff vamp-sdk/PluginAdapter.h @ 47:be8fdfe25693

* Change input buffers arg to process from float ** to const float *const * to avoid plugins modifying their input data * Some improvements to comments * Fix stupidity in frequency-domain input passing (there are n/2+1 values, not n/2)
author cannam
date Fri, 08 Dec 2006 17:39:32 +0000
parents 85801331454c
children 74822738965b
line wrap: on
line diff
--- a/vamp-sdk/PluginAdapter.h	Thu Nov 30 15:00:17 2006 +0000
+++ b/vamp-sdk/PluginAdapter.h	Fri Dec 08 17:39:32 2006 +0000
@@ -85,7 +85,7 @@
     static void vampReleaseOutputDescriptor(VampOutputDescriptor *desc);
 
     static VampFeatureList *vampProcess(VampPluginHandle handle,
-                                        float **inputBuffers,
+                                        const float *const *inputBuffers,
                                         int sec,
                                         int nsec);
 
@@ -99,8 +99,8 @@
     VampOutputDescriptor *getOutputDescriptor(Plugin *plugin,
                                              unsigned int i);
     VampFeatureList *process(Plugin *plugin,
-                              float **inputBuffers,
-                              int sec, int nsec);
+                             const float *const *inputBuffers,
+                             int sec, int nsec);
     VampFeatureList *getRemainingFeatures(Plugin *plugin);
     VampFeatureList *convertFeatures(Plugin *plugin,
                                      const Plugin::FeatureSet &features);
@@ -131,7 +131,7 @@
 {
 public:
     PluginAdapter() : PluginAdapterBase() { }
-    ~PluginAdapter() { }
+    virtual ~PluginAdapter() { }
 
 protected:
     Plugin *createPlugin(float inputSampleRate) {