diff vamp-sdk/hostext/PluginLoader.h @ 61:97c5ac99d725 host-factory-stuff

* install hostext headers to vamp-sdk/hostext/ rather than vamp-sdk/ * adjust timestamps in input-domain adapter so as to centre them on block as required by Plugin documentation * better handling for frequency-domain plugins that want non-power-of-two blocksizes (can't handle them, but at least try offering them a power-of-two alternative) * couple of Plugin doc additions * make PluginLoader capable of returning ready-wrapped plugins
author cannam
date Fri, 01 Jun 2007 13:53:42 +0000
parents 087c16cca0d6
children fe5486ee1c70
line wrap: on
line diff
--- a/vamp-sdk/hostext/PluginLoader.h	Fri May 25 13:26:59 2007 +0000
+++ b/vamp-sdk/hostext/PluginLoader.h	Fri Jun 01 13:53:42 2007 +0000
@@ -62,7 +62,15 @@
 
     PluginKey composePluginKey(std::string libraryName, std::string identifier);
 
-    Plugin *loadPlugin(PluginKey plugin, float inputSampleRate);
+    enum AdapterFlags {
+        ADAPT_INPUT_DOMAIN  = 0x01,
+        ADAPT_CHANNEL_COUNT = 0x02,
+        ADAPT_ALL           = 0xff
+    };
+
+    Plugin *loadPlugin(PluginKey plugin,
+                       float inputSampleRate,
+                       int adapterFlags = 0);
 
     PluginCategoryHierarchy getPluginCategory(PluginKey plugin);