unicens: support reproducible build
[apps/agl-service-unicens.git] / ucs2-afb / README.md
1 ------------------------------------------------------------------------
2    AudioLogic High Level APIs
3 ------------------------------------------------------------------------
4
5 Testing: (from project directory bindings)
6  * start binder:  ~/opt/bin/afb-daemon --ldpaths=./build --token=mysecret --roothttp=htdocs
7  * connect browser on http://localhost:1234?devid=hw:0
8
9  # Open Sound Card from its name
10  http://localhost:1234/api/audio/open?token=mysecret&sndname=H650e
11
12  # Subscribe event for a given board
13  http://localhost:1234/api/audio/subscribe?token=mysecret&devid=hw:0
14
15  # Increase Volume
16  http://localhost:1234/api/audio/setvol?token=mysecret&devid=hw:0&pcm=master&vol=50%
17
18  # Get Volume
19  http://localhost:1234/api/audio/getvol?token=mysecret&devid=hw:0&pcm=master
20
21  # Close Session
22  http://localhost:1234/api/audio/close?token=mysecret
23
24
25 Testing with afb-client-demo
26
27 ```
28 ~/opt/bin/afb-client-demo localhost:1234/api?token=mysecret
29 alsacore subctl {"devid":"hw:0"}
30 ```
31  
32 Start AlsaMixer and change volume
33 ```
34 alsamixer -D hw:0
35 ```