From 3648eb5f3096af065227381861af59d5999df3e2 Mon Sep 17 00:00:00 2001 From: "francois@recisio.com" Date: Fri, 22 Sep 2023 16:30:02 +0200 Subject: [PATCH] main .js cannot find the audio worklet .js file, if it's not in the root directory (#20316) --- src/library_webaudio.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/library_webaudio.js b/src/library_webaudio.js index 1a6e4a785794c..d8261c076c90d 100644 --- a/src/library_webaudio.js +++ b/src/library_webaudio.js @@ -169,7 +169,7 @@ let LibraryWebAudio = { } // TODO: In MINIMAL_RUNTIME builds, read this file off of a preloaded Blob, and/or embed from a string like with WASM_WORKERS==2 mode. - audioWorklet.addModule('{{{ TARGET_BASENAME }}}.aw.js').then(() => { + audioWorklet.addModule(locateFile('{{{ TARGET_BASENAME }}}.aw.js')).then(() => { #if WEBAUDIO_DEBUG console.log(`emscripten_start_wasm_audio_worklet_thread_async() addModule('audioworklet.js') completed`); #endif