summaryrefslogtreecommitdiffstats
path: root/BusinessLogic/README.md
blob: a07f75280ba3e6de36ba710fb66e9a22d317544f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
------------------------------------------------------------------------
   AudioLogic High Level APIs
------------------------------------------------------------------------

Testing: (from project directory bindings)
 * start binder:  ~/opt/bin/afb-daemon --ldpaths=./Alsa/src/low-level-binding:./BusinessLogic/audiologic-afb.so --roothttp=htdocs
 * connect browser on http://localhost:1234

 # Subscribe event for a given board
 http://localhost:1234/api/audio/subscribe&devid=hw:0

 # Increase Volume
 http://localhost:1234/api/audio/setvol?devid=hw:0&pcm=master&vol=50%

 # Get Volume
 http://localhost:1234/api/audio/getvol?devid=hw:0&pcm=master