https://git.reactos.org/?p=reactos.git;a=commitdiff;h=fcadedb306280af94f6d34...
commit fcadedb306280af94f6d34ddb51ed35e9a45631a Author: Eric Kohl eric.kohl@reactos.org AuthorDate: Sun Jan 13 14:05:00 2019 +0100 Commit: Eric Kohl eric.kohl@reactos.org CommitDate: Sun Jan 13 14:05:00 2019 +0100
[MMSYS] Play default sound when the volume trackbar is released.
This works on Windows XP but it might not work on ReactOS because of unimplemented features of PlaySound(). --- dll/cpl/mmsys/volume.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/dll/cpl/mmsys/volume.c b/dll/cpl/mmsys/volume.c index 6374c12edc..ccaafc36ea 100644 --- a/dll/cpl/mmsys/volume.c +++ b/dll/cpl/mmsys/volume.c @@ -472,7 +472,11 @@ VolumeDlgProc(HWND hwndDlg, break;
case WM_NOTIFY: - if (((LPNMHDR)lParam)->code == (UINT)PSN_APPLY) + if (((LPNMHDR)lParam)->code == (UINT)NM_RELEASEDCAPTURE) + { + PlaySound((LPCTSTR)SND_ALIAS_SYSTEMDEFAULT, NULL, SND_ALIAS_ID | SND_ASYNC); + } + else if (((LPNMHDR)lParam)->code == (UINT)PSN_APPLY) { SaveData(hwndDlg); }