annotate 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
rev   line source
c@78 1
c@78 2 #include "stub.h"
c@78 3
c@80 4 #include "vamp-capnp/VampnProto.h"
c@80 5
c@80 6 #include "vamp-support/AssignedPluginHandleMapper.h"
c@80 7
c@80 8 namespace piper {
c@80 9
c@80 10 class PiperClient : public PiperClientBase
c@80 11 {
c@80 12 public:
c@80 13
c@80 14 virtual
c@80 15 Vamp::Plugin::OutputList
c@80 16 configure(PiperStubPlugin *plugin,
c@80 17 Vamp::HostExt::PluginConfiguration config) {
c@80 18
c@80 19 Vamp::HostExt::ConfigurationRequest request;
c@80 20 request.plugin = plugin;
c@80 21 request.configuration = config;
c@80 22
c@80 23 ::capnp::MallocMessageBuilder message;
c@80 24 RpcRequest::Builder builder = message.initRoot<RpcRequest>();
c@80 25
c@80 26 VampnProto::buildRpcRequest_Configure(builder, request, m_mapper);
c@80 27
c@80 28 //!!! now what?
c@80 29 }
c@80 30
c@80 31
c@80 32 virtual
c@80 33 Vamp::Plugin::FeatureSet
c@80 34 process(PiperStubPlugin *plugin,
c@80 35 const float *const *inputBuffers,
c@80 36 Vamp::RealTime timestamp) = 0;
c@80 37
c@80 38 virtual Vamp::Plugin::FeatureSet
c@80 39 finish(PiperStubPlugin *plugin) = 0;
c@80 40
c@80 41 private:
c@80 42 AssignedPluginHandleMapper m_mapper;
c@80 43 };
c@80 44
c@80 45 }
c@80 46