diff host/vamp-simple-host.cpp @ 32:13eae6cc6bac

* Add a function to look up the Vamp plugin path for the current platform. * Add make install stage and pkgconfig files. (This bit is rather Linux-specific.)
author cannam
date Mon, 31 Jul 2006 16:12:37 +0000
parents d97aafa99828
children ae3e47e76d2d
line wrap: on
line diff
--- a/host/vamp-simple-host.cpp	Wed May 17 16:41:37 2006 +0000
+++ b/host/vamp-simple-host.cpp	Mon Jul 31 16:12:37 2006 +0000
@@ -49,6 +49,7 @@
 using std::cerr;
 using std::endl;
 using std::string;
+using std::vector;
 
 void printFeatures(int, int, int, Vamp::Plugin::FeatureSet);
 void transformInput(float *, size_t);
@@ -70,6 +71,13 @@
 
     cerr << endl << argv[0] << ": Running..." << endl;
 
+    cerr << endl << "Vamp path is set to:" << endl;
+    vector<string> path = Vamp::PluginHostAdapter::getPluginPath();
+    for (size_t i = 0; i < path.size(); ++i) {
+        cerr << "\t" << path[i] << endl;
+    }
+    cerr << "(This program doesn't use the path; just printing it for information)" << endl << endl;
+
     string soname = argv[1];
     string plugname = "";
     string wavname;
@@ -115,12 +123,6 @@
 
         if (plugin.getName() == plugname) plugnumber = index;
         
-        cerr << "(testing overlap...)" << endl;
-        {
-            Vamp::PluginHostAdapter otherPlugin(descriptor, 48000);
-            cerr << "(other plugin reports min " << otherPlugin.getMinChannelCount() << " channels)" << endl;
-        }
-
         ++index;
     }