Skip to content

Commit

Permalink
Fix for "no sound on PS2" (libretro#15827)
Browse files Browse the repository at this point in the history
Earlier refactor libretro@f121847
has removed CMD_EVENT_AUDIO_START (and stop), however on PS2 it
causes no sound, so it is added back behind a compiler switch.
  • Loading branch information
zoltanvb authored and Sunderland93 committed Dec 26, 2024
1 parent 91f10d4 commit 8d4b35e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions menu/menu_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -6346,6 +6346,9 @@ void menu_driver_toggle(

if (pause_libretro)
{
#ifdef PS2
command_event(CMD_EVENT_AUDIO_STOP, NULL);
#endif
#ifdef HAVE_MICROPHONE
command_event(CMD_EVENT_MICROPHONE_STOP, NULL);
#endif
Expand Down Expand Up @@ -6376,6 +6379,9 @@ void menu_driver_toggle(

if (pause_libretro)
{
#ifdef PS2
command_event(CMD_EVENT_AUDIO_START, NULL);
#endif
#ifdef HAVE_MICROPHONE
command_event(CMD_EVENT_MICROPHONE_START, NULL);
#endif
Expand Down

0 comments on commit 8d4b35e

Please sign in to comment.