diff vamp-sdk/PluginAdapter.cpp @ 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 ae3e47e76d2d
children aa64a46320d4
line wrap: on
line diff
--- a/vamp-sdk/PluginAdapter.cpp	Thu Nov 30 15:00:17 2006 +0000
+++ b/vamp-sdk/PluginAdapter.cpp	Fri Dec 08 17:39:32 2006 +0000
@@ -423,7 +423,7 @@
 
 VampFeatureList *
 PluginAdapterBase::vampProcess(VampPluginHandle handle,
-                               float **inputBuffers,
+                               const float *const *inputBuffers,
                                int sec,
                                int nsec)
 {
@@ -571,7 +571,7 @@
     
 VampFeatureList *
 PluginAdapterBase::process(Plugin *plugin,
-                           float **inputBuffers,
+                           const float *const *inputBuffers,
                            int sec, int nsec)
 {
 //    std::cerr << "PluginAdapterBase::process" << std::endl;