From ea9cd4223a9ff1f0da3276ea12727a59ab09531f Mon Sep 17 00:00:00 2001 From: fulup Date: Wed, 16 May 2018 15:16:00 +0200 Subject: Move to new config syntax --- conf.d/project/etc/4a-softmixer-config.json | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'conf.d/project/etc') diff --git a/conf.d/project/etc/4a-softmixer-config.json b/conf.d/project/etc/4a-softmixer-config.json index 2b4db11..e67709f 100644 --- a/conf.d/project/etc/4a-softmixer-config.json +++ b/conf.d/project/etc/4a-softmixer-config.json @@ -1,19 +1,18 @@ { - "schema": "http://iot.bzh/download/public/schema/json/ctl-schema.json", + "$schema": "http://iot.bzh/download/public/schema/json/ctl-schema.json", "metadata": { "uid": "Soft Mixer", "version": "1.0", "api": "softmixer", "info": "Soft Mixer emulating hardware mixer" }, - "plugins": [ + "resources": [ { "uid": "alsa-softmixer", "info": "Map alsa-loop subdevices to 4A HAL streams", "spath":"./plugins/alsa:../conf.d/project/lua.d", - "file": ["alsa-router.ctlso", "softmixer-simple.lua"], - "lua2c_prefix": "smix", - "lua2c": ["snd_cards", "snd_zones", "snd_loops", "snd_streams"] + "libs": ["alsa-router.ctlso", "softmixer-simple.lua"], + "lua": {"prefix":"smix","functions": ["snd_cards", "snd_zones", "snd_loops", "snd_streams"]} } ], @@ -21,26 +20,23 @@ { "uid": "init-soft-mixer", "info": "Initialise Audio Router", - "uri": "lua://alsa-softmixer", - "function": "_init_softmixer_" + "action": "lua://alsa-softmixer#_init_softmixer_" } ], "controls": [ { "uid": "mixer-config", - "uri": "lua://alsa-softmixer", - "function": "_mixer_config_" + "action": "lua://alsa-softmixer#_mixer_config_" }, { "uid": "snd-cards", - "uri": "plugin://alsa-softmixer", - "function": "snd_cards" + "action": "plugin://alsa-softmixer#snd_cards" }, { "uid": "snd-zone", - "uri": "plugin://alsa-softmixer", - "function": "snd_zones" + "action": "plugin://alsa-softmixer#snd_zones" } ] + } -- cgit 1.2.3-korg