[Feature] Allow muting microphone independently
Feature Description
Currently when audio is muted, it mutes everything at once, all inputs/outputs.
Use Case
I think some users may prefer to keep their microphone muted unless it's actively being used, but still want to listen to audio.
Edit to add: Also, independent volume control of microphone.
Which mechanism is the mute? For me it doesn’t through the UI at least, and there’s mic volume in the control center / ipc as well (just when input is expanded since it’s less important than output)
I'm clicking on the speaker icon as shown in this image:
I was just testing the IPC calls and it seems audio mute and audio micmute are both doing the exact same thing. They both toggle mute for both input and output at the same time.
Similarly, volume controls act like they are linked, so even if you adjust the microphone volume as mentioned, it will also adjust the output volume and vice versa. Hope that makes sense.
I don't really know about this, because it just calls sink.audio.muted = !sink.audio.muted - which should only apply to the default sink (output) in pipewire. (and for me all mute/volume controls are device dependent, so i dont have this behavior)
From the API level I don't think there's any solution though, I would say it's either:
- Some driver quirk with your audio driver
- Some special pipewire configuration that results in this
- Some other package interfering - receiving dbus events and misinterpreting them idk
- A quirk in quickshells pipewire implementation
But I don't think there's anything we can do here - (since there's nothing else we can do with the pipewire api, the button is only calling mute = !muted on the default sink, which should be not related to the source or other sinks in any way)
If it's working fine on your end, then it must be something to do with my setup. I'm just using the normal pipewire setup in NixOS, but maybe I did something in pavucontrol? I'll do some more digging on my end.
I generally just use my keyboard volume knob to change volume/mute, and don't even own a microphone so it's not really an issue for me personally. Maybe just wait and see if any other users have issues then we'd have more to work with. If I find a problem on my end, I'll make sure to add a comment to this issue. 👍