mirror of
https://github.com/libretro/RetroArch.git
synced 2024-12-01 04:00:32 +00:00
Stop/start audio driver only when g_settings.menu.pause_libretro is enabled
This commit is contained in:
parent
3b5746b6c2
commit
043cfdbb43
@ -2803,7 +2803,8 @@ void rarch_main_set_state(unsigned cmd)
|
||||
driver_set_rumble_state(i, RETRO_RUMBLE_WEAK, 0);
|
||||
}
|
||||
|
||||
rarch_main_command(RARCH_CMD_AUDIO_STOP);
|
||||
if (g_settings.menu.pause_libretro)
|
||||
rarch_main_command(RARCH_CMD_AUDIO_STOP);
|
||||
|
||||
#ifdef HAVE_MENU
|
||||
if (driver.menu)
|
||||
@ -2836,7 +2837,8 @@ void rarch_main_set_state(unsigned cmd)
|
||||
|
||||
driver_set_nonblock_state(driver.nonblock_state);
|
||||
|
||||
rarch_main_command(RARCH_CMD_AUDIO_START);
|
||||
if (g_settings.menu.pause_libretro)
|
||||
rarch_main_command(RARCH_CMD_AUDIO_START);
|
||||
|
||||
/* Prevent stray input from going to libretro core */
|
||||
driver.flushing_input = true;
|
||||
|
Loading…
Reference in New Issue
Block a user