fune/toolkit/content/tests/browser/file_webAudio.html
Mark Banner 2bf9485071 Bug 1362947 - Upgrade eslint-plugin-html to 2.0.3 to pick up --fix support. r=jaws
MozReview-Commit-ID: 5fVG7akPnGM

--HG--
extra : rebase_source : e462e84bf8f2ffd893d1fd6b5ea14bbc093168dd
2017-05-08 10:29:47 +01:00

24 lines
558 B
HTML

<!DOCTYPE html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
</head>
<script type="text/javascript">
var ac = new AudioContext();
var dest = ac.destination;
var osc = ac.createOscillator();
osc.connect(dest);
osc.start();
function start_webaudio() {
ac.resume();
}
function stop_webaudio() {
ac.suspend();
}
</script>
<body>
<button id="start" onclick="start_webaudio()">Start</button>
<button id="stop" onclick="stop_webaudio()">Stop</button>
</body>