Potential fix for silent external audio tracks

This commit is contained in:
wvffle 2022-10-28 16:45:19 +00:00 committed by Georg Krause
parent 247abbcfea
commit ba10e03143
No known key found for this signature in database
GPG Key ID: 2970D504B2183D22
1 changed files with 1 additions and 0 deletions

View File

@ -55,6 +55,7 @@ export class HTMLSound implements Sound {
constructor (sources: SoundSource[]) {
// TODO: Quality picker
this.#audio.crossOrigin = 'anonymous'
this.#audio.src = sources[0].url
this.#audio.preload = 'auto'