aboutsummaryrefslogtreecommitdiffstats
path: root/conf.d/project/etc
diff options
context:
space:
mode:
authorfulup <fulup.arfoll@iot.bzh>2018-05-16 15:16:00 +0200
committerfulup <fulup.arfoll@iot.bzh>2018-05-16 15:16:00 +0200
commitea9cd4223a9ff1f0da3276ea12727a59ab09531f (patch)
tree6bd889e82ddec28bdbfc060627c97af6b45840bf /conf.d/project/etc
parent0b33f91f060fe79e1ecc3f364b8adfe0cdd776d7 (diff)
Move to new config syntax
Diffstat (limited to 'conf.d/project/etc')
-rw-r--r--conf.d/project/etc/4a-softmixer-config.json22
1 files changed, 9 insertions, 13 deletions
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"
}
]
+
}