From c79e03fd7e4bedb780d2135b94efb1c4accadf00 Mon Sep 17 00:00:00 2001 From: Aditya Gupta Date: Sun, 31 May 2026 17:55:21 +0530 Subject: [PATCH] fix: stop audio playback when splash hides --- src/gsplash.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gsplash.c b/src/gsplash.c index a635752..af2c2ae 100644 --- a/src/gsplash.c +++ b/src/gsplash.c @@ -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) {