diff options
| author | sD <stoned@derpymail.org> | 2020-02-15 20:03:21 +0100 |
|---|---|---|
| committer | sD <stoned@derpymail.org> | 2020-02-15 20:03:21 +0100 |
| commit | 9a74f4b7b8ab8d82c0c91f628df44b53f00e9aef (patch) | |
| tree | 6bfe94b16bd899e0822e6a303d18fed6b29a50f2 /webAO | |
| parent | a83e135966dd25a929b2f6d4526fe0253c876f90 (diff) | |
don't destroy my audio and use the element for sfx
Diffstat (limited to 'webAO')
| -rw-r--r-- | webAO/client.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/webAO/client.js b/webAO/client.js index 9eb4031..826698b 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -588,7 +588,6 @@ class Client extends EventEmitter { */ handleRMC(args) { viewport.music.pause(); - viewport.music = new Audio(this.musicList[args[1]]); const music = viewport.music; // Music offset + drift from song loading music.totime = args[1]; @@ -1188,7 +1187,7 @@ class Viewport { .forEach(channel => channel.volume = 0.5); this.currentBlipChannel = 0; - this.sfxaudio = new Audio(AO_HOST + "sounds/general/sfx-blipmale.wav"); + this.sfxaudio = document.getElementById("client_sfxaudio"); this.sfxplayed = 0; this.shoutaudio = new Audio(); |
