summaryrefslogtreecommitdiffstats
path: root/htdocs/audio-logic.html
blob: 79ab114b07654bb43eea53891f050cb131a9c746 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<html>
<head>
    <title>Hello world test</title>
    
    <script type="text/javascript" src="AFB-websock.js"></script>
    <script type="text/javascript" src="AudioBinding.js"></script>
    
<body onload="init();">
    <h1>Hello world test</h1>
    <button id="connected">Binder WS Fail</button></li>
    <br>
    <ol>
    <li><button onclick="callbinder('audio','open',{sndname: sndname})">Open SndCard</button></li>
    <br>
    <li><button onclick="callbinder('audio','setvol', {pcm:'master', vol='+10'})">Increase +10 Master</button></li>
    <li><button onclick="callbinder('audio','setvol', {pcm:'master', vol='-10'})">Decrease -10 Master</button></li>
    <li><button onclick="callbinder('audio','setvol', {pcm:'master', vol='%50'})">SetVol %50 Master</button></li>
    <li><button onclick="callbinder('audio','getvol', {pcm:'master'})">GetVolume Master</button></li>
    <br>
    <li><button onclick="callbinder('audio','monitor')">Monitor LowLevel Events</button></li>
    <li><button onclick="callbinder('audio','subscribe')">Subscribe AudioBinding Events</button></li>
    <br>
    <li><button onclick="callbinder('audio','close')">Close SndCard</button></li>

    <br>
    <div id="main" style="visibility:hidden">
    Server says... <div id="output"></div>
    Events: <div id="outevt"></div>
    </div>