comparison vamp-client/client.cpp @ 80:d9e85a65d45b

Inching toward a client
author Chris Cannam <c.cannam@qmul.ac.uk>
date Tue, 11 Oct 2016 15:49:28 +0100
parents f4b5c0e70771
children c6b6051b1b1a
comparison
equal deleted inserted replaced
79:f4497c1da43d 80:d9e85a65d45b
1 1
2 #include "stub.h" 2 #include "stub.h"
3 3
4 #include "vamp-capnp/VampnProto.h"
5
6 #include "vamp-support/AssignedPluginHandleMapper.h"
7
8 namespace piper {
9
10 class PiperClient : public PiperClientBase
11 {
12 public:
13
14 virtual
15 Vamp::Plugin::OutputList
16 configure(PiperStubPlugin *plugin,
17 Vamp::HostExt::PluginConfiguration config) {
18
19 Vamp::HostExt::ConfigurationRequest request;
20 request.plugin = plugin;
21 request.configuration = config;
22
23 ::capnp::MallocMessageBuilder message;
24 RpcRequest::Builder builder = message.initRoot<RpcRequest>();
25
26 VampnProto::buildRpcRequest_Configure(builder, request, m_mapper);
27
28 //!!! now what?
29 }
30
31
32 virtual
33 Vamp::Plugin::FeatureSet
34 process(PiperStubPlugin *plugin,
35 const float *const *inputBuffers,
36 Vamp::RealTime timestamp) = 0;
37
38 virtual Vamp::Plugin::FeatureSet
39 finish(PiperStubPlugin *plugin) = 0;
40
41 private:
42 AssignedPluginHandleMapper m_mapper;
43 };
44
45 }
46