Mercurial > hg > vamp-libxtract-plugins
changeset 3:bc0cdab67251
* Update to support API versioning
author | cannam |
---|---|
date | Tue, 27 Feb 2007 12:49:39 +0000 |
parents | c2305fa8e01f |
children | 4c370a0b5469 |
files | libmain.cpp plugins/XTractPlugin.cpp |
diffstat | 2 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libmain.cpp Mon Feb 26 18:12:19 2007 +0000 +++ b/libmain.cpp Tue Feb 27 12:49:39 2007 +0000 @@ -50,8 +50,11 @@ // linked with fftw3 #define HAVE_XTRACT_FFT 1 -const VampPluginDescriptor *vampGetPluginDescriptor(unsigned int index) +const VampPluginDescriptor *vampGetPluginDescriptor(unsigned int vampApiVersion, + unsigned int index) { + if (vampApiVersion < 1) return 0; + // The missingFeatures array contains the libxtract enum values // for features that we are not providing in this plugin, either // because they aren't very meaningful in isolation or because the
--- a/plugins/XTractPlugin.cpp Mon Feb 26 18:12:19 2007 +0000 +++ b/plugins/XTractPlugin.cpp Tue Feb 27 12:49:39 2007 +0000 @@ -764,7 +764,7 @@ delete[] fft_temp; delete[] data_temp; - cerr << "XTractPlugin::process returning" << endl; +// cerr << "XTractPlugin::process returning" << endl; return fs; }