From f388facb312a9d287265ea248b6b003f5c2f8ba4 Mon Sep 17 00:00:00 2001 From: Brandon Wright Date: Sat, 6 Aug 2016 17:21:04 -0500 Subject: [PATCH] Actually mute sound during turbo. --- gtk/src/gtk_s9x.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gtk/src/gtk_s9x.cpp b/gtk/src/gtk_s9x.cpp index 98fda970..795cde6c 100644 --- a/gtk/src/gtk_s9x.cpp +++ b/gtk/src/gtk_s9x.cpp @@ -357,7 +357,6 @@ S9xIdleFunc (gpointer data) if (!S9xNetplayPush ()) { #endif - S9xMainLoop (); static int muted_from_turbo = FALSE; static int mute_saved_state = FALSE; @@ -366,6 +365,7 @@ S9xIdleFunc (gpointer data) { muted_from_turbo = TRUE; mute_saved_state = Settings.Mute; + S9xSetSoundMute (TRUE); } if (!Settings.TurboMode && muted_from_turbo) @@ -374,6 +374,9 @@ S9xIdleFunc (gpointer data) Settings.Mute = mute_saved_state; } + + S9xMainLoop (); + S9xMixSound (); #ifdef NETPLAY_SUPPORT