2
// This is a skeleton file for use in creating your own plugin
3
// libraries. Replace MyPlugin and myPlugin throughout with the name
4
// of your first plugin class, and fill in the gaps as appropriate.
7
// Remember to use a different guard symbol in each header!
11
#include <vamp-sdk/Plugin.h>
16
class MyPlugin : public Vamp::Plugin
19
MyPlugin(float inputSampleRate);
22
string getIdentifier() const;
23
string getName() const;
24
string getDescription() const;
25
string getMaker() const;
26
int getPluginVersion() const;
27
string getCopyright() const;
29
InputDomain getInputDomain() const;
30
size_t getPreferredBlockSize() const;
31
size_t getPreferredStepSize() const;
32
size_t getMinChannelCount() const;
33
size_t getMaxChannelCount() const;
35
ParameterList getParameterDescriptors() const;
36
float getParameter(string identifier) const;
37
void setParameter(string identifier, float value);
39
ProgramList getPrograms() const;
40
string getCurrentProgram() const;
41
void selectProgram(string name);
43
OutputList getOutputDescriptors() const;
45
bool initialise(size_t channels, size_t stepSize, size_t blockSize);
48
FeatureSet process(const float *const *inputBuffers,
49
Vamp::RealTime timestamp);
51
FeatureSet getRemainingFeatures();
54
// plugin-specific data and methods go here