mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-30 05:18:13 +08:00
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.
This commit is contained in:
@@ -171,7 +171,7 @@ static bool EMSCRIPTENAUDIO_OpenDevice(SDL_AudioDevice *device)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return (SDL3.audioContext !== undefined);
|
return (SDL3.audioContext !== undefined);
|
||||||
}, device->recording);
|
});
|
||||||
|
|
||||||
if (!result) {
|
if (!result) {
|
||||||
return SDL_SetError("Web Audio API is not available!");
|
return SDL_SetError("Web Audio API is not available!");
|
||||||
|
|||||||
Reference in New Issue
Block a user