From ba88b0b450fdc5a9e14a4193735de1982155f2c2 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 31 Mar 2018 14:02:58 +0200 Subject: Put ifdefs around S9xSetSoundMute call for now --- libretro.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- cgit v1.2.3