diff vamp-client/client.cpp @ 97:427c4c725085

Bring in the Request/Response classes that were in the Vamp SDK, adding them to vamp-support in here instead
author Chris Cannam <c.cannam@qmul.ac.uk>
date Thu, 13 Oct 2016 18:05:35 +0100
parents 215c9fb6b7a4
children f55631599988
line wrap: on
line diff
--- a/vamp-client/client.cpp	Thu Oct 13 17:00:06 2016 +0100
+++ b/vamp-client/client.cpp	Thu Oct 13 18:05:35 2016 +0100
@@ -9,20 +9,20 @@
 
 int main(int, char **)
 {
-    piper::vampclient::ProcessQtTransport transport("../bin/piper-vamp-server");
-    piper::vampclient::CapnpRRClient client(&transport);
+    piper_vamp::client::ProcessQtTransport transport("../bin/piper-vamp-server");
+    piper_vamp::client::CapnpRRClient client(&transport);
 
-    Vamp::HostExt::ListResponse lr = client.listPluginData();
+    piper_vamp::ListResponse lr = client.listPluginData();
     cerr << "Plugins available:" << endl;
     int i = 1;
     for (const auto &p: lr.available) {
         cerr << i++ << ". [" << p.pluginKey << "] " << p.basic.name << endl;
     }
     
-    Vamp::HostExt::LoadRequest req;
+    piper_vamp::LoadRequest req;
     req.pluginKey = "vamp-example-plugins:zerocrossing";
     req.inputSampleRate = 16;
-    Vamp::HostExt::LoadResponse resp = client.loadPlugin(req);
+    piper_vamp::LoadResponse resp = client.loadPlugin(req);
     Vamp::Plugin *plugin = resp.plugin;
     
     if (!plugin->initialise(1, 4, 4)) {