mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-22 03:08:22 +00:00
emscriptenaudio: don't get stuck in infinite loop if SDL_AudioStreamPut fails.
This commit is contained in:
@@ -73,6 +73,7 @@ HandleAudioProcess(_THIS)
|
||||
if (SDL_AudioStreamPut(this->stream, this->fake_stream, stream_len) == -1) {
|
||||
SDL_AudioStreamClear(this->stream);
|
||||
SDL_AtomicSet(&this->enabled, 0);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user