aboutsummaryrefslogtreecommitdiffstats
path: root/AudioLogic/README.md
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2017-03-08 23:56:40 +0100
committerFulup Ar Foll <fulup@iot.bzh>2017-03-08 23:56:40 +0100
commita237499e8c2e2a045ae3eea0b9a4aaac12032e81 (patch)
tree4971c10f24585fa04f0a414cb319d3b0554c8a85 /AudioLogic/README.md
parent1393b5d318e22dbd1625692847a51c27932fd442 (diff)
Late Evening Commit
Diffstat (limited to 'AudioLogic/README.md')
-rw-r--r--AudioLogic/README.md29
1 files changed, 23 insertions, 6 deletions
diff --git a/AudioLogic/README.md b/AudioLogic/README.md
index 399f905..fa50173 100644
--- a/AudioLogic/README.md
+++ b/AudioLogic/README.md
@@ -3,16 +3,33 @@
------------------------------------------------------------------------
Testing: (from project directory bindings)
- * start binder: ~/opt/bin/afb-daemon --ldpaths=./build --roothttp=htdocs
- * connect browser on http://localhost:1234
+ * start binder: ~/opt/bin/afb-daemon --ldpaths=./build --token=mysecret --roothttp=htdocs
+ * connect browser on http://localhost:1234?devid=hw:0
+
+ # Open Sound Card from its name
+ http://localhost:1234/api/audio/open?token=mysecret&sndname=H650e
# Subscribe event for a given board
- http://localhost:1234/api/audio/subscribe?devid=hw:0
+ http://localhost:1234/api/audio/subscribe?token=mysecret&devid=hw:0
# Increase Volume
- http://localhost:1234/api/audio/setvol?devid=hw:0&pcm=master&vol=50%
+ http://localhost:1234/api/audio/setvol?token=mysecret&devid=hw:0&pcm=master&vol=50%
# Get Volume
- http://localhost:1234/api/audio/getvol?devid=hw:0&pcm=master
+ http://localhost:1234/api/audio/getvol?token=mysecret&devid=hw:0&pcm=master
+
+ # Close Session
+ http://localhost:1234/api/audio/close?token=mysecret
+
+
+Testing with afb-client-demo
- \ No newline at end of file
+```
+~/opt/bin/afb-client-demo localhost:1234/api?token=mysecret
+alsacore subctl {"devid":"hw:0"}
+```
+
+Start AlsaMixer and change volume
+```
+alsamixer -D hw:0
+``` \ No newline at end of file