Mercurial > hg > sv-dependency-builds
annotate src/rubberband-1.8.1/vamp/libmain.cpp @ 23:619f715526df sv_v2.1
Update Vamp plugin SDK to 2.5
author | Chris Cannam |
---|---|
date | Thu, 09 May 2013 10:52:46 +0100 |
parents | 37bf6b4a2645 |
children |
rev | line source |
---|---|
Chris@10 | 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ |
Chris@10 | 2 |
Chris@10 | 3 /* |
Chris@10 | 4 Rubber Band Library |
Chris@10 | 5 An audio time-stretching and pitch-shifting library. |
Chris@10 | 6 Copyright 2007-2012 Particular Programs Ltd. |
Chris@10 | 7 |
Chris@10 | 8 This program is free software; you can redistribute it and/or |
Chris@10 | 9 modify it under the terms of the GNU General Public License as |
Chris@10 | 10 published by the Free Software Foundation; either version 2 of the |
Chris@10 | 11 License, or (at your option) any later version. See the file |
Chris@10 | 12 COPYING included with this distribution for more information. |
Chris@10 | 13 |
Chris@10 | 14 Alternatively, if you have a valid commercial licence for the |
Chris@10 | 15 Rubber Band Library obtained by agreement with the copyright |
Chris@10 | 16 holders, you may redistribute and/or modify it under the terms |
Chris@10 | 17 described in that licence. |
Chris@10 | 18 |
Chris@10 | 19 If you wish to distribute code using the Rubber Band Library |
Chris@10 | 20 under terms other than those of the GNU General Public License, |
Chris@10 | 21 you must obtain a valid commercial licence before doing so. |
Chris@10 | 22 */ |
Chris@10 | 23 |
Chris@10 | 24 #include <vamp/vamp.h> |
Chris@10 | 25 #include <vamp-sdk/PluginAdapter.h> |
Chris@10 | 26 |
Chris@10 | 27 #include "RubberBandVampPlugin.h" |
Chris@10 | 28 |
Chris@10 | 29 static Vamp::PluginAdapter<RubberBandVampPlugin> rubberBandAdapter; |
Chris@10 | 30 |
Chris@10 | 31 const VampPluginDescriptor *vampGetPluginDescriptor(unsigned int version, |
Chris@10 | 32 unsigned int index) |
Chris@10 | 33 { |
Chris@10 | 34 if (version < 1) return 0; |
Chris@10 | 35 |
Chris@10 | 36 switch (index) { |
Chris@10 | 37 case 0: return rubberBandAdapter.getDescriptor(); |
Chris@10 | 38 default: return 0; |
Chris@10 | 39 } |
Chris@10 | 40 } |
Chris@10 | 41 |