{ "title": "composite.basic", "description": "Simple audio mixer with only one general volume control", "lang": "en", "documentation": "http://recherche.telecom-bretagne.eu/xaal/documentation/", "ref": "http://recherche.telecom-bretagne.eu/xaal/documentation/audiomixer.basic", "license": "Copyright Christophe Lohr Telecom Bretagne 2014 - Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.", "extends": "any.any", "attributes": { "source": { "description": "Address of the device that is the audio source", "unit": "%", "type": { "$schema": "http://json-schema.org/schema#", "type": "string", "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" } }, "volume": { "description": "General volume", "unit": "%", "type": { "$schema": "http://json-schema.org/schema#", "type": "number", "minimum": 0, "maximum": 100 } } }, "methods": { "getAttributes": { "description": "Get source and volume of the audio mixer", "parameters": { "attributes": { "description": "List of wanted attributes", "unit": "", "direction": "in", "type": { "$schema": "http://json-schema.org/schema#", "type": "array", "items": { "enum": [ "source", "volume" ] }, "additionalItems": false } }, "source": { "description": "Address of the device that is the audio source", "unit": "%", "direction": "out", "type": { "$schema": "http://json-schema.org/schema#", "type": "string", "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" } }, "volume": { "description": "General volume", "unit": "%", "direction": "out", "type": { "$schema": "http://json-schema.org/schema#", "type": "number", "minimum": 0, "maximum": 100 } } }, "relatedAttributes": [ ] }, "setSource": { "description": "Set the device that is the audio source", "parameters": { "source": { "description": "Address of the device that is the audio source", "direction": "inout", "unit": "%", "type": { "$schema": "http://json-schema.org/schema#", "type": "string", "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" } } }, "relatedAttributes": [ "source" ] }, "up": { "description": "Turn up the volume", "parameters": { }, "relatedAttributes": [ "volume" ] }, "down": { "description": "Turn down the volume", "parameters": { }, "relatedAttributes": [ "volume" ] }, "mute": { "description": "Mute the volume", "parameters": { }, "relatedAttributes": [ "volume" ] }, "unmute": { "description": "Unmute the volume", "parameters": { }, "relatedAttributes": [ "volume" ] } }, "notifications": { "attributesChange": { "description": "Notify volume level changes", "parameters": { "volume": { "description": "General volume level", "unit": "%", "type": { "$schema": "http://json-schema.org/schema#", "type": "number", "minimum": 0, "maximum": 100 } }, "source": { "description": "Address of the device that is the audio source", "unit": "%", "type": { "$schema": "http://json-schema.org/schema#", "type": "string", "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" } } } } } }