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 |
e034075a2089 |
children |
b0f0e257d8af |
rev |
line source |
cannam@162
|
1
|
cannam@162
|
2 Piper
|
cannam@162
|
3 Copyright (c) 2015-2017 Queen Mary, University of London
|
cannam@162
|
4
|
cannam@162
|
5 Permission is hereby granted, free of charge, to any person
|
cannam@162
|
6 obtaining a copy of this software and associated documentation
|
cannam@162
|
7 files (the "Software"), to deal in the Software without
|
cannam@162
|
8 restriction, including without limitation the rights to use, copy,
|
cannam@162
|
9 modify, merge, publish, distribute, sublicense, and/or sell copies
|
cannam@162
|
10 of the Software, and to permit persons to whom the Software is
|
cannam@162
|
11 furnished to do so, subject to the following conditions:
|
cannam@162
|
12
|
cannam@162
|
13 The above copyright notice and this permission notice shall be
|
cannam@162
|
14 included in all copies or substantial portions of the Software.
|
cannam@162
|
15
|
cannam@162
|
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
cannam@162
|
17 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
cannam@162
|
18 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
cannam@162
|
19 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
|
cannam@162
|
20 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
cannam@162
|
21 CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
cannam@162
|
22 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
cannam@162
|
23
|
cannam@162
|
24 Except as contained in this notice, the names of the Centre for
|
cannam@162
|
25 Digital Music; Queen Mary, University of London; and Chris Cannam
|
cannam@162
|
26 shall not be used in advertising or otherwise to promote the sale,
|
cannam@162
|
27 use or other dealings in this Software without prior written
|
cannam@162
|
28 authorization.
|
cannam@162
|
29
|