mirror of
https://github.com/libretro/RetroArch
synced 2025-03-22 07:21:15 +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;
|
bool pending_push = false;
|
||||||
menu_driver_ctl(MENU_NAVIGATION_CTL_CLEAR, &pending_push);
|
menu_driver_ctl(MENU_NAVIGATION_CTL_CLEAR, &pending_push);
|
||||||
}
|
}
|
||||||
if (selection != menu_navigation_get_selection())
|
|
||||||
{
|
|
||||||
#ifdef HAVE_AUDIOMIXER
|
#ifdef HAVE_AUDIOMIXER
|
||||||
|
if (selection != menu_navigation_get_selection())
|
||||||
audio_driver_mixer_play_scroll_sound(true);
|
audio_driver_mixer_play_scroll_sound(true);
|
||||||
#endif
|
#endif
|
||||||
}
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -255,14 +255,11 @@ static int action_right_scroll(unsigned type, const char *label,
|
|||||||
menu_driver_ctl(MENU_NAVIGATION_CTL_SET_LAST, NULL);
|
menu_driver_ctl(MENU_NAVIGATION_CTL_SET_LAST, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (selection != menu_navigation_get_selection())
|
|
||||||
{
|
|
||||||
#ifdef HAVE_AUDIOMIXER
|
#ifdef HAVE_AUDIOMIXER
|
||||||
|
if (selection != menu_navigation_get_selection())
|
||||||
audio_driver_mixer_play_scroll_sound(false);
|
audio_driver_mixer_play_scroll_sound(false);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user