Mercurial > hg > vamp-aubio-plugins
changeset 14:a5e23a7501a2
* Update to support API versioning
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Tue, 27 Feb 2007 12:49:08 +0000 |
parents | 1169d00391d8 |
children | 30153569c1a6 |
files | libmain.cpp plugins/Tempo.cpp |
diffstat | 2 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libmain.cpp Mon Feb 26 18:10:34 2007 +0000 +++ b/libmain.cpp Tue Feb 27 12:49:08 2007 +0000 @@ -27,8 +27,11 @@ static Vamp::PluginAdapter<Notes> notesAdapter; static Vamp::PluginAdapter<Tempo> tempoAdapter; -const VampPluginDescriptor *vampGetPluginDescriptor(unsigned int index) +const VampPluginDescriptor *vampGetPluginDescriptor(unsigned int vampApiVersion, + unsigned int index) { + if (vampApiVersion < 1) return 0; + switch (index) { case 0: return onsetAdapter.getDescriptor(); case 1: return pitchAdapter.getDescriptor();
--- a/plugins/Tempo.cpp Mon Feb 26 18:10:34 2007 +0000 +++ b/plugins/Tempo.cpp Tue Feb 27 12:49:08 2007 +0000 @@ -22,7 +22,7 @@ using std::cerr; using std::endl; -#define HAVE_AUBIO_LOCKED_TEMPO_HACK +//#define HAVE_AUBIO_LOCKED_TEMPO_HACK Tempo::Tempo(float inputSampleRate) : Plugin(inputSampleRate),