diff --git a/src/audio/emscripten/SDL_emscriptenaudio.c b/src/audio/emscripten/SDL_emscriptenaudio.c index 839d445ee6..f343696ba9 100644 --- a/src/audio/emscripten/SDL_emscriptenaudio.c +++ b/src/audio/emscripten/SDL_emscriptenaudio.c @@ -225,6 +225,7 @@ EMSCRIPTENAUDIO_CloseDevice(_THIS) SDL2.capture = undefined; } else { if (SDL2.audio.scriptProcessorNode != undefined) { + SDL2.audio.scriptProcessorNode.onaudioprocess = function(audioProcessingEvent) {}; SDL2.audio.scriptProcessorNode.disconnect(); SDL2.audio.scriptProcessorNode = undefined; }