mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
Instead of stopping the audio when we enter the menu and starting it
when exiting the menu, always mute instead
This commit is contained in:
parent
cf7b30481b
commit
1e72eda1e4
1 changed files with 10 additions and 2 deletions
12
retroarch.c
12
retroarch.c
|
@ -35646,7 +35646,11 @@ static void menu_driver_toggle(
|
|||
command_event(CMD_EVENT_RUMBLE_STOP, NULL);
|
||||
|
||||
if (pause_libretro && !audio_enable_menu)
|
||||
command_event(CMD_EVENT_AUDIO_STOP, NULL);
|
||||
{
|
||||
/* TODO/FIXME - do we need to 'mute' the MIDI driver too? Stopping all
|
||||
* MIDI sounds was done in CMD_EVENT_AUDIO_STOP */
|
||||
p_rarch->audio_driver_mute_enable = true;
|
||||
}
|
||||
|
||||
#if 0
|
||||
if (audio_enable_menu && audio_enable_menu_bgm)
|
||||
|
@ -35677,7 +35681,11 @@ static void menu_driver_toggle(
|
|||
driver_set_nonblock_state();
|
||||
|
||||
if (pause_libretro && !audio_enable_menu)
|
||||
command_event(CMD_EVENT_AUDIO_START, NULL);
|
||||
{
|
||||
/* TODO/FIXME - do we need to 'unmute' the MIDI driver too?
|
||||
Stopping all MIDI sounds was done in CMD_EVENT_AUDIO_STOP */
|
||||
p_rarch->audio_driver_mute_enable = false;
|
||||
}
|
||||
|
||||
#if 0
|
||||
if (audio_enable_menu && audio_enable_menu_bgm)
|
||||
|
|
Loading…
Add table
Reference in a new issue