From 408f1003e3087d8048e3b3b6196c51f8c942853e Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Tue, 8 Oct 2024 16:29:21 +0500 Subject: [PATCH] UI: Use "MessageNudge" sound for alert --- src/ui/util/osutil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/util/osutil.cpp b/src/ui/util/osutil.cpp index a1079c3a..788229e5 100644 --- a/src/ui/util/osutil.cpp +++ b/src/ui/util/osutil.cpp @@ -131,9 +131,9 @@ bool OsUtil::beep(BeepType type) bool OsUtil::playSound(SoundType /*type*/) { - constexpr DWORD flags = SND_ALIAS_ID | SND_ASYNC | SND_SENTRY; + constexpr DWORD flags = SND_ASYNC | SND_SENTRY; - return PlaySoundW(LPCWSTR(SND_ALIAS_SYSTEMDEFAULT), nullptr, flags); + return PlaySoundA("MessageNudge", nullptr, flags); } void OsUtil::showConsole(bool visible)