summaryrefslogtreecommitdiffstats
path: root/htdocs
diff options
context:
space:
mode:
Diffstat (limited to 'htdocs')
-rw-r--r--htdocs/AudioBinding.js5
-rw-r--r--htdocs/alsa-core.html1
-rw-r--r--htdocs/alsa-hal.html34
-rw-r--r--htdocs/index.html1
4 files changed, 40 insertions, 1 deletions
diff --git a/htdocs/AudioBinding.js b/htdocs/AudioBinding.js
index e830861..9771726 100644
--- a/htdocs/AudioBinding.js
+++ b/htdocs/AudioBinding.js
@@ -16,7 +16,10 @@
// default soundcard is "PCH"
var devid=getParameterByName("devid");
- if (!devid) devid="hw:0";
+ if (!devid) devid="hw:1";
+
+ var haldev=getParameterByName("haldev");
+ if (!haldev) haldev="scarlett-usb";
var sndname=getParameterByName("sndname");
if (!sndname) sndname="PCH";
diff --git a/htdocs/alsa-core.html b/htdocs/alsa-core.html
index 6483180..7fff3d8 100644
--- a/htdocs/alsa-core.html
+++ b/htdocs/alsa-core.html
@@ -20,6 +20,7 @@
<li><button onclick="callbinder('alsacore','getinfo', {quiet:quiet})">Get All Sound Card info</button></li>
<li><button onclick="callbinder('alsacore','getinfo', {devid:devid, quiet:quiet})">Get Sound Card info devid=xx</button></li>
<li><button onclick="callbinder('alsacore','getctls', {devid:devid, quiet:quiet})">Get all Alsa Ctls for devid=xx</button></li>
+ <li><button onclick="callbinder('alsacore','getctls', {devid:devid, quiet:quiet, numids:[4]})">Get Alsa Ctls numids:[4]</button></li>
<li><button onclick="callbinder('alsacore','getctls', {devid:devid, quiet:quiet, numids:[1,2]})">Get Alsa Ctls numids:[1,2]</button></li>
<li><button onclick="callbinder('alsacore','getctls', {devid:devid, quiet:quiet, numids:17})">Get Alsa Ctl numids:17</button></li>
<br>
diff --git a/htdocs/alsa-hal.html b/htdocs/alsa-hal.html
new file mode 100644
index 0000000..15c1661
--- /dev/null
+++ b/htdocs/alsa-hal.html
@@ -0,0 +1,34 @@
+<html>
+<head>
+ <title>Basic Audio Hardware Abstraction Layer Test</title>
+
+ <script type="text/javascript" src="AFB-websock.js"></script>
+ <script type="text/javascript" src="AudioBinding.js"></script>
+
+<b> references</b>
+ <ol>
+ <li>http://localhost:1234/alsa-core.html?haldev=scarlett-usb</li>
+ </ol>
+
+<body onload="init();">
+ <h1>Hello world test</h1>
+ <button id="connected" onclick="init()">Binder WS Fail</button></li>
+ <br>
+ <ol>
+ <li><button onclick="callbinder('alsacore','hallist')">List Existing HAL</button></li>
+
+ <li><button onclick="callbinder(haldev,'listctls')">List Active HAL Controls </button></li>
+ <br>
+ <li><button onclick="callbinder(haldev,'getctls', {label:'Master_Playback_Volume'})">Get {label:'Master_Playback_Volume'}</button></li>
+ <li><button onclick="callbinder(haldev,'getctls', [{tag:4},{tag:5}])">Get[{tag:4},{tag:5}]</button></li>
+ <li><button onclick="callbinder(haldev,'getctls', [4,5])">Get [4,5]</button></li>
+ <br>
+ </ol>
+
+ <div id="main" style="visibility:hidden">
+ <ol>
+ <li>Question <div id="question"></div>
+ <li>Response <div id="output"></div>
+ <li>Events: <div id="outevt"></div>
+ </ol>
+ </div>
diff --git a/htdocs/index.html b/htdocs/index.html
index 330ef4d..2d2b4ae 100644
--- a/htdocs/index.html
+++ b/htdocs/index.html
@@ -5,4 +5,5 @@
<h1>audio-bindings test</h1>
<ol>
<li><a href="alsa-core.html">AlsaCore Low Level Binding</a>
+ <li><a href="alsa-hal.html" >AlsaHAL Hardware Abstraction Layer</a>
<li><a href="audio-logic.html">AudioLogic High level business API</a>