From b2e8a587ca42474bdae4b684278cbc217ed11ea7 Mon Sep 17 00:00:00 2001 From: henrypp Date: Sat, 11 Jan 2020 10:25:44 +0600 Subject: [PATCH] set SoundSentry flag --- src/notifications.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/notifications.cpp b/src/notifications.cpp index a1523593..e734fbf5 100644 --- a/src/notifications.cpp +++ b/src/notifications.cpp @@ -358,8 +358,8 @@ void _app_notifyplaysound () result = true; } - if (!result || !_r_fs_exists (notify_snd_path) || !PlaySound (notify_snd_path, nullptr, SND_FILENAME | SND_ASYNC)) - PlaySound (NOTIFY_SOUND_NAME, nullptr, SND_ASYNC); + if (!result || !_r_fs_exists (notify_snd_path) || !PlaySound (notify_snd_path, nullptr, SND_ASYNC | SND_NODEFAULT | SND_FILENAME | SND_SENTRY)) + PlaySound (NOTIFY_SOUND_NAME, nullptr, SND_ASYNC | SND_NODEFAULT | SND_SENTRY); } void _app_notifyrefresh (HWND hwnd, bool is_safety)