emscripten: Feed silence to device when paused
diff --git a/src/audio/emscripten/SDL_emscriptenaudio.c b/src/audio/emscripten/SDL_emscriptenaudio.c
index 5bcb48b..67f1cc3 100644
--- a/src/audio/emscripten/SDL_emscriptenaudio.c
+++ b/src/audio/emscripten/SDL_emscriptenaudio.c
@@ -59,6 +59,9 @@ HandleAudioProcess(_THIS)
if (this->stream) {
SDL_AudioStreamClear(this->stream);
}
+
+ SDL_memset(this->work_buffer, this->spec.silence, this->spec.size);
+ FeedAudioDevice(this, this->work_buffer, this->spec.size);
return;
}