From b681862f14f478109366047a2122263336e61322 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 30 Dec 2025 15:35:53 -0500 Subject: [PATCH] emscripten: Don't pass an argument to MAIN_THREAD_EM_ASM_INT we don't use. This upsets things, because you end up calling a javascript function with more arguments than it expects, and if asserts are enabled, Emscripten notices this and aborts the program when you hit this code. Reference Issue #14670. --- src/audio/emscripten/SDL_emscriptenaudio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio/emscripten/SDL_emscriptenaudio.c b/src/audio/emscripten/SDL_emscriptenaudio.c index cba47bb5fb..cb5b6bf494 100644 --- a/src/audio/emscripten/SDL_emscriptenaudio.c +++ b/src/audio/emscripten/SDL_emscriptenaudio.c @@ -171,7 +171,7 @@ static bool EMSCRIPTENAUDIO_OpenDevice(SDL_AudioDevice *device) } } return (SDL3.audioContext !== undefined); - }, device->recording); + }); if (!result) { return SDL_SetError("Web Audio API is not available!");