Chris@7
|
1 /*
|
Chris@7
|
2 CHP
|
Chris@7
|
3 Copyright (c) 2014 Queen Mary, University of London
|
Chris@7
|
4
|
Chris@7
|
5 Permission is hereby granted, free of charge, to any person
|
Chris@7
|
6 obtaining a copy of this software and associated documentation
|
Chris@7
|
7 files (the "Software"), to deal in the Software without
|
Chris@7
|
8 restriction, including without limitation the rights to use, copy,
|
Chris@7
|
9 modify, merge, publish, distribute, sublicense, and/or sell copies
|
Chris@7
|
10 of the Software, and to permit persons to whom the Software is
|
Chris@7
|
11 furnished to do so, subject to the following conditions:
|
Chris@7
|
12
|
Chris@7
|
13 The above copyright notice and this permission notice shall be
|
Chris@7
|
14 included in all copies or substantial portions of the Software.
|
Chris@7
|
15
|
Chris@7
|
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
Chris@7
|
17 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
Chris@7
|
18 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
Chris@7
|
19 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
|
Chris@7
|
20 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
Chris@7
|
21 CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
Chris@7
|
22 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
Chris@7
|
23 */
|
Chris@0
|
24
|
Chris@0
|
25 #include <vamp/vamp.h>
|
Chris@0
|
26 #include <vamp-sdk/PluginAdapter.h>
|
Chris@0
|
27
|
Chris@0
|
28 #include "ConstrainedHarmonicPeak.h"
|
Chris@0
|
29
|
Chris@0
|
30 static Vamp::PluginAdapter<ConstrainedHarmonicPeak> chpAdapter;
|
Chris@0
|
31
|
Chris@0
|
32 const VampPluginDescriptor *
|
Chris@0
|
33 vampGetPluginDescriptor(unsigned int version, unsigned int index)
|
Chris@0
|
34 {
|
Chris@0
|
35 if (version < 1) return 0;
|
Chris@0
|
36
|
Chris@0
|
37 switch (index) {
|
Chris@0
|
38 case 0: return chpAdapter.getDescriptor();
|
Chris@0
|
39 default: return 0;
|
Chris@0
|
40 }
|
Chris@0
|
41 }
|
Chris@0
|
42
|
Chris@0
|
43
|