diff options
author | fulup <fulup.arfoll@iot.bzh> | 2017-04-09 14:35:00 +0200 |
---|---|---|
committer | fulup <fulup.arfoll@iot.bzh> | 2017-04-09 14:35:00 +0200 |
commit | 6e70aac6c9f02496978d3d02efb355d66fb36ceb (patch) | |
tree | d50df20591076b3da2031b2b9eb249f2a1921f53 /ALSA-afb/README.md | |
parent | c75c329e08f4c189419aa4c5607f38890885b46c (diff) |
Clean CMAKE structure and rename files/directories
Diffstat (limited to 'ALSA-afb/README.md')
-rw-r--r-- | ALSA-afb/README.md | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/ALSA-afb/README.md b/ALSA-afb/README.md new file mode 100644 index 0000000..a4b0395 --- /dev/null +++ b/ALSA-afb/README.md @@ -0,0 +1,33 @@ +------------------------------------------------------------------------ + AlsaCore Low level binding maps AlsaLib APIs +------------------------------------------------------------------------ + +Testing: (from project directory bindings) + * start binder: ~/opt/bin/afb-daemon --ldpaths=./build --token=mysecret --roothttp=htdocs + * connect browser on http://localhost:1234?devid=hw:0 + + # List Avaliable Sound cards + http://localhost:1234/api/alsacore/getinfo + + # Get Info on a given Sound Card + http://localhost:1234/api/alsacore/getinfo?devid=hw:0 + + # Get shortname/longname for a given card + http://localhost:1234/api/alsacore/getcardid?devid=hw:0 + + # Get all controls from a given sound card + http://localhost:1234/api/alsacore/getctl?devid=hw:0 + + # Get detail on a given control (optional quiet=0=verbose,1,2) + http://localhost:1234/api/alsacore/getctl?devid=hw:0&numid=1&quiet=0 + +# Debug event with afb-client-demo +``` + ~/opt/bin/afb-client-demo localhost:1234/api?token=mysecret + alsacore subscribe {"devid":"hw:0"} +``` + +# Open AlsaMixer and play with Volume +``` + alsamixer -D hw:0 +``` |