Mercurial > hg > piper-cpp
comparison vamp-client/CapnpRRClient.h @ 185:3eb00e5c76c4
Pull step & block size out into framing struct, return in config
Update the C++ code to separate out the framing parameters (step and
block size) from the configuration structure into their own structure,
as in the latest schema, and to return the accepted framing params in
the configuration response.
This also implies that the plugin stub (which adapts Piper API
back to Vamp) makes a note of the returned values,
making them available via its own getPreferredStep/BlockSize
so that the host can retry the initialise call in the case where it
failed for having the wrong values first time.
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Fri, 03 Feb 2017 16:23:21 +0000 |
parents | 590b1a1fd955 |
children | ad6025dc0b04 61034472c304 |
comparison
equal
deleted
inserted
replaced
184:150cfa0c71e1 | 185:3eb00e5c76c4 |
---|---|
197 } | 197 } |
198 | 198 |
199 // PluginClient methods: | 199 // PluginClient methods: |
200 | 200 |
201 virtual | 201 virtual |
202 Vamp::Plugin::OutputList | 202 ConfigurationResponse |
203 configure(PluginStub *plugin, | 203 configure(PluginStub *plugin, |
204 PluginConfiguration config) override { | 204 PluginConfiguration config) override { |
205 | 205 |
206 LOG_E("CapnpRRClient::configure called"); | 206 LOG_E("CapnpRRClient::configure called"); |
207 | 207 |
230 reader.getResponse().getConfigure(), | 230 reader.getResponse().getConfigure(), |
231 m_mapper); | 231 m_mapper); |
232 | 232 |
233 LOG_E("CapnpRRClient::configure returning"); | 233 LOG_E("CapnpRRClient::configure returning"); |
234 | 234 |
235 return cr.outputs; | 235 return cr; |
236 }; | 236 }; |
237 | 237 |
238 virtual | 238 virtual |
239 Vamp::Plugin::FeatureSet | 239 Vamp::Plugin::FeatureSet |
240 process(PluginStub *plugin, | 240 process(PluginStub *plugin, |