changeset 1386:0d45fff7ccd1

Update to match slightly changed Piper Vamp C++ API
author Chris Cannam
date Fri, 10 Feb 2017 14:49:45 +0000
parents 8db84bd61eaa
children 9b52f1a952b5
files plugin/PiperVampPluginFactory.cpp
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/plugin/PiperVampPluginFactory.cpp	Tue Feb 07 14:55:19 2017 +0000
+++ b/plugin/PiperVampPluginFactory.cpp	Fri Feb 10 14:49:45 2017 +0000
@@ -28,7 +28,7 @@
 #define CAPNP_LITE 1
 #endif
 
-#include "vamp-client/qt/AutoPlugin.h"
+#include "vamp-client/qt/PiperAutoPlugin.h"
 #include "vamp-client/qt/ProcessQtTransport.h"
 #include "vamp-client/CapnpRRClient.h"
 
@@ -123,10 +123,10 @@
         return 0;
     }
 
-    SVDEBUG << "PiperVampPluginFactory: Creating Piper AutoPlugin for server "
+    SVDEBUG << "PiperVampPluginFactory: Creating PiperAutoPlugin for server "
         << m_origins[identifier] << ", identifier " << identifier << endl;
     
-    auto ap = new piper_vamp::client::AutoPlugin
+    auto ap = new piper_vamp::client::PiperAutoPlugin
         (m_origins[identifier].toStdString(),
          psd.pluginKey,
          float(inputSampleRate),
@@ -229,7 +229,7 @@
     piper_vamp::ListResponse resp;
 
     try {
-        resp = client.listPluginData(req);
+        resp = client.list(req);
     } catch (piper_vamp::client::ServerCrashed) {
         SVDEBUG << "PiperVampPluginFactory: Piper server crashed" << endl;
         errorMessage = QObject::tr