|
<!DOCTYPE html>
|
|
<script>
|
|
var ac = new AudioContext();
|
|
var osc = ac.createOscillator();
|
|
osc.connect(ac.destination);
|
|
osc.start(0);
|
|
|
|
function suspendAC() {
|
|
ac.suspend();
|
|
}
|
|
|
|
function resumeAC() {
|
|
ac.resume();
|
|
}
|
|
|
|
function closeAC() {
|
|
ac.close();
|
|
}
|
|
</script>
|