Mercurial > hg > piper-cpp
comparison vamp-client/client.cpp @ 92:21f8af53eaf0
Reorganise some classes
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Thu, 13 Oct 2016 12:02:44 +0100 |
parents | 6429a99abcad |
children | fbce91785d35 |
comparison
equal
deleted
inserted
replaced
91:c897c9a8daf1 | 92:21f8af53eaf0 |
---|---|
1 | 1 |
2 #include "PiperStubPlugin.h" | |
3 #include "CapnpMessageCompletenessChecker.h" | |
4 #include "PipedQProcessTransport.h" | 2 #include "PipedQProcessTransport.h" |
5 #include "PiperCapnpClient.h" | 3 #include "PiperCapnpClient.h" |
6 | 4 |
7 #include <stdexcept> | 5 #include <stdexcept> |
8 | 6 |
9 using std::cerr; | 7 using std::cerr; |
10 using std::endl; | 8 using std::endl; |
11 | 9 |
12 int main(int, char **) | 10 int main(int, char **) |
13 { | 11 { |
14 piper::CapnpMessageCompletenessChecker checker; | 12 piper::PipedQProcessTransport transport("../bin/piper-vamp-server"); |
15 piper::PipedQProcessTransport transport("../bin/piper-vamp-server", &checker); | |
16 piper::PiperCapnpClient client(&transport); | 13 piper::PiperCapnpClient client(&transport); |
17 | 14 |
18 Vamp::Plugin *plugin = client.load("vamp-example-plugins:zerocrossing", 16, 0); | 15 Vamp::Plugin *plugin = client.load("vamp-example-plugins:zerocrossing", 16, 0); |
19 if (!plugin->initialise(1, 4, 4)) { | 16 if (!plugin->initialise(1, 4, 4)) { |
20 cerr << "initialisation failed" << endl; | 17 cerr << "initialisation failed" << endl; |