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:
Skirlez 2022-12-28 21:19:02 +02:00 committed by LibretroAdmin
parent ae5612ce91
commit 710625e0e6
2 changed files with 2 additions and 7 deletions

View File

@ -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;
}

View File

@ -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;