Destiny-2-Solo-Enabler icon indicating copy to clipboard operation
Destiny-2-Solo-Enabler copied to clipboard

Feature Request: Audible tone on config change

Open JerichoJones opened this issue 1 year ago • 4 comments

It's working perfectly for me. :) An audio tone when making a config change would be brilliant.

Thanks for your work!

JerichoJones avatar Mar 21 '23 16:03 JerichoJones

How should it work? 2 different sounds for when enabling a setting vs disabling a setting? And should it play the sound for each time one clicks on a setting, or only when clicking save? 🤔

I'm open to the idea, just need it clarified a bit more 😄

DrNoLife avatar Apr 12 '23 05:04 DrNoLife

Two different sounds/tones on enable disable. I don't care about Save. I do that before I start the game. Thanks!

JerichoJones avatar Jun 23 '23 22:06 JerichoJones

Feel free to edit your code to use the console beep. https://stackoverflow.com/questions/74225087/is-there-a-way-to-beep-in-the-console-using-powershell

To summarize (in case the link is removed):
[console]::beep() ## The default beep

[console]::beep(500, 300) ## param 1 is the tone; param 2 is the duration in ms; anything lower than 190, or higher than 8500 cannot be heard.

[console]::beep(2000, 500) ## a higher pitch, and longer duration

wkearney99 avatar Jul 05 '24 15:07 wkearney99

If you want the default Windows sounds, you could use one of these lines to play their sounds: [System.Media.SystemSounds]::Asterisk.Play() [System.Media.SystemSounds]::Beep.Play() [System.Media.SystemSounds]::Exclamation.Play() [System.Media.SystemSounds]::Hand.Play() [System.Media.SystemSounds]::Question.Play()

Note these are the defaults, not necessarily the ones active if you've got a different sound theme applied, or made your own manual selections from the Sounds control panel.

wkearney99 avatar Jul 05 '24 16:07 wkearney99