overlays: fix missing sound autorepeat fence.

The other instances aren't realistically autorepeating
This commit is contained in:
Megamouse committed 2023-05-25 06:37:31 +02:00
1 parent f031cd9b42
commit 96f1f9e45e
1 file changed
+5 -1
@@ -157,7 +157,11 @@ namespace rsx
{
if (const std::function<page_navigation(pad_button)>& func = ::at32(m_callbacks, index))
{
Emu.GetCallbacks().play_sound(fs::get_config_dir() + "sounds/snd_decide.wav");
// Play a sound unless this is a fast auto repeat which would induce a nasty noise
if (!is_auto_repeat || auto_repeat_interval_ms >= user_interface::m_auto_repeat_ms_interval_default)
{
Emu.GetCallbacks().play_sound(fs::get_config_dir() + "sounds/snd_decide.wav");
}
return func(button_press);
}
}