mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-07 07:00:48 +00:00
emscripten: Feed silence to device when paused
This commit is contained in:
parent
dcc5eef0e2
commit
07a2d71e90
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue