aboutsummaryrefslogtreecommitdiffstats
path: root/conf.d/project/etc/smixer-test-config.json
blob: 86431750a0718040f56bdd5b649db0c5b3f42dfd (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
    "$schema": "http://iot.bzh/download/public/schema/json/ctl-schema.json",
    "metadata": {
        "uid": "Soft Mixer",
        "version": "1.0",
        "api": "smixer",
        "info": "Soft Mixer emulating hardware mixer"
    },
    "resources": [
        {
            "uid": "softmixer",
            "info": "Map alsa-loop subdevices to 4A HAL streams",
            "spath": "./package/lib/plugins:./package/var:./lib/plugins:./var",
            "libs": ["alsa-softmixer.ctlso", "smixer-test-usb_8ch.lua"]
        }
    ],
    "onload": [
        {
            "uid": "mixer-create-api",
            "info": "Create Audio Router",
            "action": "plugin://softmixer#MixerCreate",
            "args": {
                "uid":"Alsa-Mixer",
                "max_loop": 1,
                "max_sink": 8,
                "max_source": 8,
                "max_zone": 8,
                "max_stream": 8,
                "max_ramp": 4
            }
        },
        {
            "uid": "mixer-attach-loop",
            "info": "Create Audio Router",
            "action": "plugin://softmixer#MixerAttach",
            "args": {
                "loops" : {
                    "uid":"Alsa-Loopback",
                    "path": "/dev/snd/by-path/platform-snd_aloop.0",
                    "devices" : {"playback":0, "capture":1},
                    "subdevs" : [
                        {"subdev": 0, "numid": 51, "uid": "loop-legacy"},
                        {"subdev": 1, "numid": 57, "uid": "loop-multimedia"},
                        {"subdev": 2, "numid": 63},
                        {"subdev": 3, "numid": 69},
                        {"subdev": 4, "numid": 75},
                        {"subdev": 5, "numid": 81},
                        {"subdev": 6, "numid": 87},
                        {"subdev": 7, "numid": 93}
                    ]
                }
            }
        },
        {
            "uid": "lua-test-attach",
            "info": "For testing purpose attach stream & zone directly from LUA script to simulate HAL",
            "action": "lua://softmixer#_mixer_simple_test_"
        }
    ]
}