diff options
author | Fulup Ar Foll <fulup@iot.bzh> | 2017-03-08 23:56:40 +0100 |
---|---|---|
committer | Fulup Ar Foll <fulup@iot.bzh> | 2017-03-08 23:56:40 +0100 |
commit | a237499e8c2e2a045ae3eea0b9a4aaac12032e81 (patch) | |
tree | 4971c10f24585fa04f0a414cb319d3b0554c8a85 /AlsaSound/CoreBinding/README.md | |
parent | 1393b5d318e22dbd1625692847a51c27932fd442 (diff) |
Late Evening Commit
Diffstat (limited to 'AlsaSound/CoreBinding/README.md')
-rw-r--r-- | AlsaSound/CoreBinding/README.md | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/AlsaSound/CoreBinding/README.md b/AlsaSound/CoreBinding/README.md new file mode 100644 index 0000000..5b6f026 --- /dev/null +++ b/AlsaSound/CoreBinding/README.md @@ -0,0 +1,30 @@ +------------------------------------------------------------------------ + 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 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 +``` |