diff --git a/app/composables/useAssets.ts.in b/app/composables/useAssets.ts.in index fedbdcb..41c986d 100644 --- a/app/composables/useAssets.ts.in +++ b/app/composables/useAssets.ts.in @@ -41,7 +41,12 @@ const createAudio = (path: string) => { const node = audioContext.createBufferSource(); node.buffer = buffer; node.connect(gain).connect(audioContext.destination); - node.start(); + + if (audioContext.state === "suspended") { + audioContext.resume().then(() => node.start()); + } else { + node.start(); + } }, }; };