fix: stop audio playback when splash hides
This commit is contained in:
@@ -371,6 +371,10 @@ int main(int argc, char* argv[]) {
|
||||
log_info("Hiding splash window (delayed)");
|
||||
SDL_HideWindow(window);
|
||||
hide_scheduled = false;
|
||||
|
||||
if (audio_active) {
|
||||
SDL_PauseAudioDevice(audio_player.audio_device, 1);
|
||||
}
|
||||
}
|
||||
|
||||
if (video_active) {
|
||||
|
||||
Reference in New Issue
Block a user