1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-25 12:12:50 +01:00

overlays: fix missing sound autorepeat fence.

The other instances aren't realistically autorepeating
This commit is contained in:
Megamouse 2023-05-24 23:48:16 +02:00
parent f031cd9b42
commit 96f1f9e45e

View File

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