diff --git a/src/audio/playMusic.ts b/src/audio/playMusic.ts index d1420c1e..de87b601 100644 --- a/src/audio/playMusic.ts +++ b/src/audio/playMusic.ts @@ -6,6 +6,7 @@ import type { AudioPlay, AudioPlayOpt } from "./play"; export function playMusic(url: string, opt: AudioPlayOpt = {}): AudioPlay { const onEndEvents = new KEvent(); const el = new Audio(url); + el.crossOrigin = "anonymous"; const src = _k.audio.ctx.createMediaElementSource(el); src.connect(_k.audio.masterNode);