microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.51k stars 6.56k forks source link

[Future] Background Applications Auto Mute #33972

Open wuyilingwei opened 3 months ago

wuyilingwei commented 3 months ago

Description of the new feature / enhancement

Automatically mute audio playback when it is not in focus.

Scenario when this would be used?

Automatically control some apps that you might only use with sound when in the foreground, such as when checking some information or at other times. Although this program was originally designed to automatically mute games, I think it could be useful in other work situations as well. I'm not a C++ programmer, though, so I probably can't help with the programming.

Supporting information

Use Windows' built-in volume synthesizer to adjust the process volume. Program exmaple (python): https://github.com/wuyilingwei/AutoMuteBG

QuentinMcCarthy commented 1 month ago

Was about to post this as a request, here's my two cents, what I wrote reg. it: Mute in Background is a feature many games have, but many games don't have it, and applications in general never have it. I'd propose a tool wherein you can whitelist apps and games to mute their audio when they're not in focus.

It streamlines the process of muting audio and alt+tabbing from games and/or apps. It can help with isolating audio, and in general is a very nice QoL tool that windows lacks in place of applications controlling their own audio output.

At the moment if an app doesn't provide the option, you have to go into Window's app-specific settings and manually mute the app there, which is cumbersome.