Actually mute sound during turbo.

This commit is contained in:
Brandon Wright 2016-08-06 17:21:04 -05:00
parent 1442378a13
commit f388facb31
1 changed files with 4 additions and 1 deletions

View File

@ -357,7 +357,6 @@ S9xIdleFunc (gpointer data)
if (!S9xNetplayPush ()) if (!S9xNetplayPush ())
{ {
#endif #endif
S9xMainLoop ();
static int muted_from_turbo = FALSE; static int muted_from_turbo = FALSE;
static int mute_saved_state = FALSE; static int mute_saved_state = FALSE;
@ -366,6 +365,7 @@ S9xIdleFunc (gpointer data)
{ {
muted_from_turbo = TRUE; muted_from_turbo = TRUE;
mute_saved_state = Settings.Mute; mute_saved_state = Settings.Mute;
S9xSetSoundMute (TRUE);
} }
if (!Settings.TurboMode && muted_from_turbo) if (!Settings.TurboMode && muted_from_turbo)
@ -374,6 +374,9 @@ S9xIdleFunc (gpointer data)
Settings.Mute = mute_saved_state; Settings.Mute = mute_saved_state;
} }
S9xMainLoop ();
S9xMixSound (); S9xMixSound ();
#ifdef NETPLAY_SUPPORT #ifdef NETPLAY_SUPPORT