cannam@95: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ cannam@95: cannam@95: /* cannam@95: Rubber Band Library cannam@95: An audio time-stretching and pitch-shifting library. cannam@95: Copyright 2007-2012 Particular Programs Ltd. cannam@95: cannam@95: This program is free software; you can redistribute it and/or cannam@95: modify it under the terms of the GNU General Public License as cannam@95: published by the Free Software Foundation; either version 2 of the cannam@95: License, or (at your option) any later version. See the file cannam@95: COPYING included with this distribution for more information. cannam@95: cannam@95: Alternatively, if you have a valid commercial licence for the cannam@95: Rubber Band Library obtained by agreement with the copyright cannam@95: holders, you may redistribute and/or modify it under the terms cannam@95: described in that licence. cannam@95: cannam@95: If you wish to distribute code using the Rubber Band Library cannam@95: under terms other than those of the GNU General Public License, cannam@95: you must obtain a valid commercial licence before doing so. cannam@95: */ cannam@95: cannam@95: #include cannam@95: #include cannam@95: cannam@95: #include "RubberBandVampPlugin.h" cannam@95: cannam@95: static Vamp::PluginAdapter rubberBandAdapter; cannam@95: cannam@95: const VampPluginDescriptor *vampGetPluginDescriptor(unsigned int version, cannam@95: unsigned int index) cannam@95: { cannam@95: if (version < 1) return 0; cannam@95: cannam@95: switch (index) { cannam@95: case 0: return rubberBandAdapter.getDescriptor(); cannam@95: default: return 0; cannam@95: } cannam@95: } cannam@95: