Mercurial > hg > silvet
comparison src/libmain.cpp @ 31:c6d230c31713
Stubbing out Vamp plugin
author | Chris Cannam |
---|---|
date | Thu, 03 Apr 2014 17:38:45 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
30:d697e78f81f1 | 31:c6d230c31713 |
---|---|
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ | |
2 | |
3 /* | |
4 Silvet | |
5 | |
6 A Vamp plugin for note transcription. | |
7 Centre for Digital Music, Queen Mary University of London. | |
8 | |
9 This program is free software; you can redistribute it and/or | |
10 modify it under the terms of the GNU General Public License as | |
11 published by the Free Software Foundation; either version 2 of the | |
12 License, or (at your option) any later version. See the file | |
13 COPYING included with this distribution for more information. | |
14 */ | |
15 | |
16 #include <vamp/vamp.h> | |
17 #include <vamp-sdk/PluginAdapter.h> | |
18 | |
19 #include "Silvet.h" | |
20 | |
21 static Vamp::PluginAdapter<Silvet> silvetAdapter; | |
22 | |
23 const VampPluginDescriptor * | |
24 vampGetPluginDescriptor(unsigned int version, unsigned int index) | |
25 { | |
26 if (version < 1) return 0; | |
27 | |
28 switch (index) { | |
29 case 0: return silvetAdapter.getDescriptor(); | |
30 default: return 0; | |
31 } | |
32 } | |
33 | |
34 |