pulling vendor branch for rubberband
[ardour.git] / libs / rubberband / 1.0 / src / vamp / libmain.cpp
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*-  vi:set ts=8 sts=4 sw=4: */
2
3 /*
4     Rubber Band
5     An audio time-stretching and pitch-shifting library.
6     Copyright 2007 Chris Cannam.
7     
8     This program is free software; you can redistribute it and/or
9     modify it under the terms of the GNU General Public License as
10     published by the Free Software Foundation; either version 2 of the
11     License, or (at your option) any later version.  See the file
12     COPYING included with this distribution for more information.
13 */
14
15 #include <vamp/vamp.h>
16 #include <vamp-sdk/PluginAdapter.h>
17
18 #include "RubberBandVampPlugin.h"
19
20 static Vamp::PluginAdapter<RubberBandVampPlugin> rubberBandAdapter;
21
22 const VampPluginDescriptor *vampGetPluginDescriptor(unsigned int version,
23                                                     unsigned int index)
24 {
25     if (version < 1) return 0;
26
27     switch (index) {
28     case  0: return rubberBandAdapter.getDescriptor();
29     default: return 0;
30     }
31 }
32