mirror of
https://github.com/libretro/RetroArch
synced 2025-03-20 10:20:51 +00:00
put the if statement that leads to playing the sound inside the HAVE_AUDIOMIXER ifdef in menu_cbs_left and menu_cbs_right
This commit is contained in:
parent
ae5612ce91
commit
710625e0e6
@ -248,12 +248,10 @@ static int action_left_scroll(unsigned type, const char *label,
|
||||
bool pending_push = false;
|
||||
menu_driver_ctl(MENU_NAVIGATION_CTL_CLEAR, &pending_push);
|
||||
}
|
||||
if (selection != menu_navigation_get_selection())
|
||||
{
|
||||
#ifdef HAVE_AUDIOMIXER
|
||||
if (selection != menu_navigation_get_selection())
|
||||
audio_driver_mixer_play_scroll_sound(true);
|
||||
#endif
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -255,13 +255,10 @@ static int action_right_scroll(unsigned type, const char *label,
|
||||
menu_driver_ctl(MENU_NAVIGATION_CTL_SET_LAST, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
if (selection != menu_navigation_get_selection())
|
||||
{
|
||||
#ifdef HAVE_AUDIOMIXER
|
||||
if (selection != menu_navigation_get_selection())
|
||||
audio_driver_mixer_play_scroll_sound(false);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user