annotate plugins.cpp @ 0:31d2a7e07786
Moved all to folder "tempogram".
author |
Carl Bussey <c.bussey@se10.qmul.ac.uk> |
date |
Mon, 07 Jul 2014 10:08:14 +0100 |
parents |
|
children |
c11367df624d |
rev |
line source |
c@0
|
1
|
c@0
|
2 // This is a skeleton file for use in creating your own plugin
|
c@0
|
3 // libraries. Replace MyPlugin and myPlugin throughout with the name
|
c@0
|
4 // of your first plugin class, and fill in the gaps as appropriate.
|
c@0
|
5
|
c@0
|
6
|
c@0
|
7 #include <vamp/vamp.h>
|
c@0
|
8 #include <vamp-sdk/PluginAdapter.h>
|
c@0
|
9
|
c@0
|
10 #include "Tempogram.h"
|
c@0
|
11
|
c@0
|
12
|
c@0
|
13 // Declare one static adapter here for each plugin class in this library.
|
c@0
|
14
|
c@0
|
15 static Vamp::PluginAdapter<Tempogram> myPluginAdapter;
|
c@0
|
16
|
c@0
|
17
|
c@0
|
18 // This is the entry-point for the library, and the only function that
|
c@0
|
19 // needs to be publicly exported.
|
c@0
|
20
|
c@0
|
21 const VampPluginDescriptor *
|
c@0
|
22 vampGetPluginDescriptor(unsigned int version, unsigned int index)
|
c@0
|
23 {
|
c@0
|
24 if (version < 1) return 0;
|
c@0
|
25
|
c@0
|
26 // Return a different plugin adaptor's descriptor for each index,
|
c@0
|
27 // and return 0 for the first index after you run out of plugins.
|
c@0
|
28 // (That's how the host finds out how many plugins are in this
|
c@0
|
29 // library.)
|
c@0
|
30
|
c@0
|
31 switch (index) {
|
c@0
|
32 case 0: return myPluginAdapter.getDescriptor();
|
c@0
|
33 default: return 0;
|
c@0
|
34 }
|
c@0
|
35 }
|
c@0
|
36
|
c@0
|
37
|