emscripten: Feed silence to device when paused

This commit is contained in:
Charlie Birks 2021-03-30 11:56:38 +01:00
parent dcc5eef0e2
commit 07a2d71e90

View File

@ -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;
}