terminal
terminal copied to clipboard
Volume Mixer Sound Setting not saved for Windows Terminal
Windows Terminal version
1.20.11781.0
Windows build number
10.0.19045.4780
Other Software
No response
Problem
My issue is I like to have my system sounds (including the bell) set to 10% of System Volume. I have already customised the bell wav for my terminal profiles and this works well, its just the bell sound is too loud and I can't set it to 10% volume because Windows doesn't remember the volume mixer setting for Windows Terminal after it restarts (unlike other apps).
Some undesirable workarounds:
- I know I can disable the bell via
bellStylebut this is not what I want to do. - I know I can modify the bell sound wav audio itself to be much quieter but it seems like a hack.
Steps to reproduce
Current volume mixer:
These settings work perfectly for Command Prompt shell (my system sounds is at 10% and my bell sound is quiet).
However, for other WT profiles it does not work the same:
- Open wt up with a non Command Prompt profile (for example, I am using Git Bash)
- Trigger bell sound (i.e. via failed autocompletion etc). Windows Terminal now appears in volume mixer
- Set Windows Terminal volume to desired volume (i.e. 10%)
- Quit Windows Terminal
- Start Windows Terminal
- Trigger bell sound again (Volume is back to 100% in Volume Mixer)
Post volume mixer:
Expected Behavior
Volume remains the same as previously set value in Volume Mixer.
Actual Behavior
Volume is reset (back to 100%) in Volume Mixer.
Thanks for filing! We're thinking this may be an app platform bug as it's fixed in Win11.
We're thinking this may also be fixed by using a different media player from the WinRT one. We've seen that doing that has fixed other issues (i.e. file picker issues).
We're thinking this may also be fixed by using a different media player from the WinRT one. We've seen that doing that has fixed other issues (i.e. file picker issues).
Thanks for the reply mate. Can you elaborate on the 'different media player' part? What does that mean exactly? Do you have a link to other similar issues?
Sure thing. We're using the "modern" WinRT MediaPlayer APIs to play bell sounds currently:
https://github.com/microsoft/terminal/blob/56cfb77c6d2aeaa408310756ed711531a037c021/src/cascadia/TerminalApp/TerminalPaneContent.cpp#L314-L317
But we've got a theory that the older, win32-style APIs for playing media probably don't have the same OS bug applicable to them. That's where we'd start investigating.
as it's fixed in Win11.
I'm on Windows 11 (OS build 26100.2605, Terminal version 1.21.3231.0) and it's very much not fixed there. Every time something in the terminal goes ding, the alert sound is played at a deafening volume.