aboutsummaryrefslogtreecommitdiff
path: root/libretro.c
diff options
context:
space:
mode:
authortwinaphex2018-03-31 14:02:58 +0200
committertwinaphex2018-03-31 14:02:58 +0200
commitba88b0b450fdc5a9e14a4193735de1982155f2c2 (patch)
tree11744d8ae746b579070a80a819a4f6ce4f1b5b64 /libretro.c
parent9f836824d9f447ac8f2ffc829ebb02e49caf5e57 (diff)
downloadsnes9x2005-ba88b0b450fdc5a9e14a4193735de1982155f2c2.tar.gz
snes9x2005-ba88b0b450fdc5a9e14a4193735de1982155f2c2.tar.bz2
snes9x2005-ba88b0b450fdc5a9e14a4193735de1982155f2c2.zip
Put ifdefs around S9xSetSoundMute call for now
Diffstat (limited to 'libretro.c')
-rw-r--r--libretro.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libretro.c b/libretro.c
index 8625c57..a3d2beb 100644
--- a/libretro.c
+++ b/libretro.c
@@ -450,13 +450,17 @@ void retro_run(void)
bool videoEnabled = 0 != (result & 1);
bool hardDisableAudio = 0 != (result & 8);
IPPU.RenderThisFrame = videoEnabled;
+#ifdef USE_BLARGG_APU
S9xSetSoundMute(!audioEnabled || hardDisableAudio);
+#endif
Settings.HardDisableAudio = hardDisableAudio;
}
else
{
IPPU.RenderThisFrame = true;
+#ifdef USE_BLARGG_APU
S9xSetSoundMute(false);
+#endif
Settings.HardDisableAudio = false;
}