diff host/vamp-simple-host.cpp @ 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 fa79c4ec847d
children
line wrap: on
line diff
--- a/host/vamp-simple-host.cpp	Fri May 25 13:26:59 2007 +0000
+++ b/host/vamp-simple-host.cpp	Fri Jun 01 13:53:42 2007 +0000
@@ -181,18 +181,15 @@
 	return 1;
     }
 
-    Vamp::Plugin *basePlugin = loader->loadPlugin(key, sfinfo.samplerate);
-    if (!basePlugin) {
+    Vamp::Plugin *plugin = loader->loadPlugin
+        (key, sfinfo.samplerate, PluginLoader::ADAPT_ALL);
+    if (!plugin) {
         cerr << myname << ": ERROR: Failed to load plugin \"" << id
              << "\" from library \"" << soname << "\"" << endl;
         sf_close(sndfile);
         return 1;
     }
 
-    Vamp::Plugin *plugin =
-        new Vamp::HostExt::PluginChannelAdapter
-        (new Vamp::HostExt::PluginInputDomainAdapter(basePlugin));
-
     cerr << "Running plugin: \"" << plugin->getIdentifier() << "\"..." << endl;
 
     int blockSize = plugin->getPreferredBlockSize();