mirror of https://github.com/snes9xgit/snes9x.git
Actually mute sound during turbo.
This commit is contained in:
parent
1442378a13
commit
f388facb31
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue