{ "title": "composite.basic", "version": 0.2, "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", "variables": { "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": { "getVariables": { "description": "Empty method", "parameters": { }, "relatedVariables": [ ] }, "getSource": { "description": "Get the device that is the audio source"", "parameters": { "source": { "description": "Address of the device that is the audio source", "direction": "out", "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}$" } } }, "relatedVariables": [ ] }, "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}$" } } }, "relatedVariables": [ "source" ] }, "getVolume": { "description": "Get volume level", "parameters": { "volume": { "description": "General volume", "direction": "out", "unit": "%", "type": { "$schema": "http://json-schema.org/schema#", "type": "number", "minimum": 0, "maximum": 100 } } }, "relatedVariables": [ ] }, "up": { "description": "Turn up the volume", "parameters": { }, "relatedVariables": [ "volume" ] }, "down": { "description": "Turn down the volume", "parameters": { }, "relatedVariables": [ "volume" ] }, "mute": { "description": "Mute the volume", "parameters": { }, "relatedVariables": [ "volume" ] }, "unmute": { "description": "Unmute the volume", "parameters": { }, "relatedVariables": [ "volume" ] } }, "notifications": { "variablesChange": { "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 } } } } } }