summaryrefslogtreecommitdiffstats
path: root/conf.d/project/etc/4a-softmixer-config.json
blob: 2b4db1199fdcb0298d39bc56ec4e7cfe09073e89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
    "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": [
        {
            "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"]
        }
    ],

    "onload": [
        {
            "uid": "init-soft-mixer",
            "info": "Initialise Audio Router",
            "uri": "lua://alsa-softmixer",
            "function": "_init_softmixer_"
        }
    ],

    "controls": [
        {
            "uid": "mixer-config",
            "uri": "lua://alsa-softmixer",
            "function": "_mixer_config_"
        },
        {
            "uid": "snd-cards",
            "uri": "plugin://alsa-softmixer",
            "function": "snd_cards"
        },
        {
            "uid": "snd-zone",
            "uri": "plugin://alsa-softmixer",
             "function": "snd_zones"
        }
    ]
}