aboutsummaryrefslogtreecommitdiffstats
path: root/conf.d/project/etc
diff options
context:
space:
mode:
authorfulup <fulup.arfoll@iot.bzh>2018-06-06 11:47:08 +0200
committerfulup <fulup.arfoll@iot.bzh>2018-06-06 11:57:25 +0200
commit1594606d160d61153cf2396befdefdcf24a0b4eb (patch)
tree726645b48d3b0b3bc157ed6b1007bbc10f4e3791 /conf.d/project/etc
parent7aaf36d8e729400f7efc75d7e03e162e1f262293 (diff)
Move smixer API create+attach into controller onload section
Diffstat (limited to 'conf.d/project/etc')
-rw-r--r--conf.d/project/etc/smixer-test-config.json20
1 files changed, 8 insertions, 12 deletions
diff --git a/conf.d/project/etc/smixer-test-config.json b/conf.d/project/etc/smixer-test-config.json
index 3ed9f29..71eded8 100644
--- a/conf.d/project/etc/smixer-test-config.json
+++ b/conf.d/project/etc/smixer-test-config.json
@@ -12,24 +12,20 @@
"info": "Map alsa-loop subdevices to 4A HAL streams",
"spath": "./package/lib/plugins:./package/var:./lib/plugins:./var",
"libs": ["alsa-softmixer.ctlso", "smixer-test-simple.lua"],
- "lua": {
- "prefix": "smix",
- "functions": ["_mixer_new_"]
- }
}
],
"onload": [
{
- "uid": "init-soft-mixer",
- "info": "Initialise Audio Router",
- "action": "lua://softmixer#_mixer_simple_test_"
- }
- ],
- "controls": [
+ "uid": "create-soft-mixer",
+ "info": "Create Audio Router",
+ "action": "plugin://softmixer#CreateMixer",
+ "args": {"uid":"Simple_Test_Mixer"}
+ },
{
- "uid": "create",
- "action": "plugin://softmixer#mixer_new"
+ "uid": "attach-soft-mixer",
+ "info": "Attach Stream to Audio Router",
+ "action": "lua://softmixer#_mixer_simple_test_"
}
]
}