comparison vamp-capnp/VampnProto.h @ 116:d15cb1151d76

Add JSON support directly to the server. Had hoped to avoid this (using Capnp as canonical in the server and then converting externally as necessary) but it's just too useful for debugging purposes when bundled with client app
author Chris Cannam <c.cannam@qmul.ac.uk>
date Thu, 27 Oct 2016 11:39:41 +0100
parents cd438188e3f9
children 5b113c87b6e6
comparison
equal deleted inserted replaced
115:5a716f08e4be 116:d15cb1151d76
33 */ 33 */
34 34
35 #include "piper.capnp.h" 35 #include "piper.capnp.h"
36 36
37 #include <capnp/message.h> 37 #include <capnp/message.h>
38 //#include <capnp/serialize-packed.h>
39 38
40 #include <vamp-hostsdk/Plugin.h> 39 #include <vamp-hostsdk/Plugin.h>
41 #include <vamp-hostsdk/PluginLoader.h> 40 #include <vamp-hostsdk/PluginLoader.h>
42 41
43 #include "vamp-support/PluginStaticData.h" 42 #include "vamp-support/PluginStaticData.h"
134 static void 133 static void
135 buildConfiguredOutputDescriptor(piper::ConfiguredOutputDescriptor::Builder &b, 134 buildConfiguredOutputDescriptor(piper::ConfiguredOutputDescriptor::Builder &b,
136 const Vamp::Plugin::OutputDescriptor &od) { 135 const Vamp::Plugin::OutputDescriptor &od) {
137 136
138 b.setUnit(od.unit); 137 b.setUnit(od.unit);
139
140 b.setSampleType(fromSampleType(od.sampleType)); 138 b.setSampleType(fromSampleType(od.sampleType));
141 b.setSampleRate(od.sampleRate); 139 b.setSampleRate(od.sampleRate);
142 b.setHasDuration(od.hasDuration); 140 b.setHasDuration(od.hasDuration);
143 141
144 b.setHasFixedBinCount(od.hasFixedBinCount); 142 b.setHasFixedBinCount(od.hasFixedBinCount);