summaryrefslogtreecommitdiff
path: root/boot.js
diff options
context:
space:
mode:
Diffstat (limited to 'boot.js')
-rw-r--r--boot.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/boot.js b/boot.js
index d62791e..fbb2468 100644
--- a/boot.js
+++ b/boot.js
@@ -127,11 +127,20 @@ async function load() {
play(audio) {
audio.play();
},
+ pause(audio) {
+ audio.pause();
+ },
volume(audio) {
return audio.volume;
},
setVolume(audio, vol) {
audio.volume = vol;
+ },
+ setLoop(audio, loop) {
+ audio.loop = (loop == 1);
+ },
+ seek(audio, time) {
+ audio.currentTime = time;
}
},
image: {