lx-s / WinMute

WinMute lets you automatically mute your PC volume on certain events (e. g. Screensaver, Workstation Lock, Shutdown, etc.).
BSD 3-Clause "New" or "Revised" License
168 stars 6 forks source link

Mute all output devices #5

Closed notsupported closed 2 years ago

notsupported commented 3 years ago

It seems WinMute only mutes the master volume of the primary output device. Would it be possible to extend this to all output devices?

I use my laptop's speakers as primary output. When I lock the device, WinMute correctly mutes this output. However, my headset still rings when a Skype or Teams call comes in. It's a Plantronics USB headset and it shows up as a different device in Windows. It is used only for calls.

lx-s commented 3 years ago

Thanks for your suggestion!

I will add this to the next update after 1.6. For this to work, I have to rework my "was already muted by the user"-detection (which is getting quite complicated in light of #4), and rework the audio device detection.

It will be a while when I come around to adding it, but I will (I have also multiple endpoints on my PC, so it will be easy to test :) )

winedog commented 2 years ago

Would this issue explain why WinMute is not working for me on a laptop that uses thunderbolt dock? It works great on my desktop PC at home, but a laptop that I keep docked at work doesn't seem to work at all. I can activate it and even manually mute the system, but as soon as a Skype call or Slack notification comes through the system unmutes? I did set the Thunderbolt dock as the default audio device and it didn't seem to have any effect.

lx-s commented 2 years ago

I can activate it and even manually mute the system, but as soon as a Skype call or Slack notification comes through the system unmutes?

I think those apps may unmute your system when they receive an incoming call.

For skype, you can configure this behaviour in Settings > Audio and Video > Unmute for incoming calls.

I wonder if this setting is enabled in your skype installation.

winedog commented 2 years ago

I never noticed that setting before! The laptop in question had it turned on and my desktop had it disabled. This certainly explains why I saw it unmuting even when the laptop was unlocked and I would manually mute via WinMute. I disabled that Skype setting and the manual Mute persisted while unlocked and receiving an incoming call from Skype.

However, when I locked the system, an incoming Skype call would still ring.

So I tried some testing and disabled the setting "Restore volume when returning" to see if the issue was that Winmute was simply not triggering the mute on locking. I locked the screen and then unlocked and it was still unmuted.

Then I exited and relaunched WinMute, Locked and Unlocked and the system remained muted. If I re-enable "Restore volume when returning", it doesn't work on the next screen Lock unless I quite/restart WinMute. I replicated this behavior on both my laptop and desktop system.

Is there an issue where Winmute has to be closed and relaunched after a settings change?

lx-s commented 2 years ago

That sounds... strange. I will try to recreate it

Sorry for not being very responsive right now. A month ago I started a new job which keeps me really busy. I want to make a bigger revision of WinMute soon™, that includes some of the requests that have been written here, as well as log file option to (hopefully) better understand whats going on in some cases.

lx-s commented 2 years ago

Muting all endpoints is now available with WinMute 1.9.9 (This is a pre-release version for 2.0). If you want, you can try it here: https://github.com/lx-s/WinMute/releases/tag/1.9.9.1