Skip to content
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.

Commit

Permalink
emscripten: Feed silence to device when paused
Browse files Browse the repository at this point in the history
  • Loading branch information
Daft-Freak committed Mar 31, 2021
1 parent cd6d089 commit edfa580
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/audio/emscripten/SDL_emscriptenaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,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;
}

Expand Down

0 comments on commit edfa580

Please sign in to comment.