mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-10-21 11:24:51 +00:00
16 lines
325 B
HTML
16 lines
325 B
HTML
|
<!DOCTYPE html>
|
||
|
<script>
|
||
|
var ac = new AudioContext();
|
||
|
fetch("audio.ogg").then(response => {
|
||
|
return response.arrayBuffer();
|
||
|
}).then(ab => {
|
||
|
return ac.decodeAudioData(ab);
|
||
|
}).then(ab => {
|
||
|
var src = ac.createBufferSource();
|
||
|
src.buffer = ab;
|
||
|
src.loop = true;
|
||
|
src.start();
|
||
|
src.connect(ac.destination);
|
||
|
});
|
||
|
</script>
|