Mercurial > hg > piper
changeset 100:d86881046395
Load request/response
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Wed, 09 Mar 2016 15:23:41 +0000 |
parents | 6ff2abfeb379 |
children | a1072b81d50a |
files | schema/loadrequest.json schema/loadresponse.json |
diffstat | 2 files changed, 43 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/schema/loadrequest.json Wed Mar 09 15:23:41 2016 +0000 @@ -0,0 +1,20 @@ +{ + "id": "http://vamp-plugins.org/json/schema/loadrequest#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for a serialised load request for a Vamp Plugin", + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "inputSampleRate": { + "type": "number" + }, + "adapterFlags": { + "$ref": "http://vamp-plugins.org/json/schema/enums#/definitions/adapter_flags" + } + }, + "required": [ "key", "inputSampleRate" ], + "additionalProperties": false +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/schema/loadresponse.json Wed Mar 09 15:23:41 2016 +0000 @@ -0,0 +1,23 @@ +{ + "id": "http://vamp-plugins.org/json/schema/loadresponse#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for a serialised response to a load request for a Vamp Plugin", + "type": "object", + "properties": { + "pluginHandle": { + "type": "number" + }, + "staticData": { + "$ref": "http://vamp-plugins.org/json/schema/pluginstaticdata#" + }, + "defaultConfiguration": { + "$ref": "http://vamp-plugins.org/json/schema/pluginconfiguration#" + }, + "errorText": { + "type": "string" + } + }, + "required": [ ], + "additionalProperties": false +} +