comparison vamp-client/client.cpp @ 93:fbce91785d35

Having a class called PipedXX is too confusing with all the Piper classes; give up and rename it
author Chris Cannam <c.cannam@qmul.ac.uk>
date Thu, 13 Oct 2016 12:07:41 +0100
parents 21f8af53eaf0
children a660dca988f8
comparison
equal deleted inserted replaced
92:21f8af53eaf0 93:fbce91785d35
1 1
2 #include "PipedQProcessTransport.h" 2 #include "PiperQProcessTransport.h"
3 #include "PiperCapnpClient.h" 3 #include "PiperCapnpClient.h"
4 4
5 #include <stdexcept> 5 #include <stdexcept>
6 6
7 using std::cerr; 7 using std::cerr;
8 using std::endl; 8 using std::endl;
9 9
10 int main(int, char **) 10 int main(int, char **)
11 { 11 {
12 piper::PipedQProcessTransport transport("../bin/piper-vamp-server"); 12 piper::PiperQProcessTransport transport("../bin/piper-vamp-server");
13 piper::PiperCapnpClient client(&transport); 13 piper::PiperCapnpClient client(&transport);
14 14
15 Vamp::Plugin *plugin = client.load("vamp-example-plugins:zerocrossing", 16, 0); 15 Vamp::Plugin *plugin = client.load("vamp-example-plugins:zerocrossing", 16, 0);
16 if (!plugin->initialise(1, 4, 4)) { 16 if (!plugin->initialise(1, 4, 4)) {
17 cerr << "initialisation failed" << endl; 17 cerr << "initialisation failed" << endl;