annotate plugins.cpp @ 1:ab0b04e1c56b

Implement the plugin!
author Chris Cannam
date Fri, 07 Mar 2014 15:51:20 +0000
parents f559ab000b67
children f5b9bae2a8c3
rev   line source
Chris@0 1
Chris@0 2 #include <vamp/vamp.h>
Chris@0 3 #include <vamp-sdk/PluginAdapter.h>
Chris@0 4
Chris@0 5 #include "ConstrainedHarmonicPeak.h"
Chris@0 6
Chris@0 7 static Vamp::PluginAdapter<ConstrainedHarmonicPeak> chpAdapter;
Chris@0 8
Chris@0 9 const VampPluginDescriptor *
Chris@0 10 vampGetPluginDescriptor(unsigned int version, unsigned int index)
Chris@0 11 {
Chris@0 12 if (version < 1) return 0;
Chris@0 13
Chris@0 14 switch (index) {
Chris@0 15 case 0: return chpAdapter.getDescriptor();
Chris@0 16 default: return 0;
Chris@0 17 }
Chris@0 18 }
Chris@0 19
Chris@0 20