diff plugins.cpp @ 0:f559ab000b67

Initial skeleton
author Chris Cannam
date Fri, 07 Mar 2014 14:34:50 +0000
parents
children f5b9bae2a8c3
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/plugins.cpp	Fri Mar 07 14:34:50 2014 +0000
@@ -0,0 +1,20 @@
+
+#include <vamp/vamp.h>
+#include <vamp-sdk/PluginAdapter.h>
+
+#include "ConstrainedHarmonicPeak.h"
+
+static Vamp::PluginAdapter<ConstrainedHarmonicPeak> chpAdapter;
+
+const VampPluginDescriptor *
+vampGetPluginDescriptor(unsigned int version, unsigned int index)
+{
+    if (version < 1) return 0;
+
+    switch (index) {
+    case  0: return chpAdapter.getDescriptor();
+    default: return 0;
+    }
+}
+
+