Closed Luximoz closed 4 days ago
Hi,
Thanks for this detailed suggestion.
Regarding the Unlock sound
Honestly, I was not aware this sound existed. I went and checked under Windows 7, 8, 10 and 11, and cannot find that sound in the Sound panel, although it is indeed present in registry starting with Windows 8:
Windows 7 - Not present in registry - Regular Logoff/Logon sounds heard when locking then unlocking the session.
Windows 8 - Present in registry, not present in Sound panel. No sound heard when locking then unlocking the session.
Windows 10 - Present in registry, not present in Sound panel. No sound heard when locking then unlocking the session.
Windows 11 - Present in registry, not present in Sound panel. No sound heard when locking then unlocking the session.
I could not get this sound event to work, but this should not be an issue, see below.
Regarding sound event implementation
On Windows Vista & 7, the following sounds should be heard for the following events:
Since Windows 8 and above play no Logon, Logoff or Unlock sound from my testing, I reimplemented the sounds in SoundManager as they were played before by explorer.exe, so they should be the same as Windows 7:
Indeed, Windows XP has the following behavior regarding Subsequent logon after boot and Logoff:
I never really payed attention to this difference because I rarely login again or logoff on my own computer. I think the easiest fix will be adding a setting in config file you'll be able to toggle to have XP behavior for subsequent logons and logoff:
Putting that on the TODO list.
Hi,
I've implemented the changes in the following test build: 📁 sound-manager-v3.3.0 TEST 2024-09-19.zip
You can enable the so-called "XP Mode" by going to Settings > Edit config file, then setting PreferStartupSoundOnLogon=True
. You will need to log off and log on again to apply.
Let me know it this suits your needs so that I add this in the main codebase.
@Luximoz Were you able to test the "XP mode" implemented in the test build above?
Implemented in commit 3257416fbbde9334950ee5596615f4b38f39cfb4 that will be included in next release.
Feature included in SoundManager v3.3.1.
Why am I suggesting this? Ever since Windows 8, you can make Windows play a unique sound when unlocking the session called "Windows Unlock.wav" by default. (Ignore the XP Royale themed windows, I'm on a Windows 10 setup)
Another reason, which explains why I'm also suggesting a lock sound as well is because in Windows XP, the shutdown sound would also play when logging off, while the logoff sound would only play if you lock your session, while the startup sound always plays whenever you sign in and the logon sound would only play whenever you unlock your session.
So, currently, it is impossible to replicate Windows XP and older versions' behavior with Sound Manager