mk-fg / python-pulse-control

Python high-level interface and ctypes-based bindings for PulseAudio (libpulse)
https://pypi.org/project/pulsectl/
MIT License
171 stars 36 forks source link

How to mute? #63

Closed reesericci closed 3 years ago

reesericci commented 3 years ago

How do I mute/unmute all output channels?

mk-fg commented 3 years ago

Github issues are not a place to ask trivial "how to use" questions - try Stack Overflow or similar places. They handle such process much better, and have all sorts of tools to fix/clarify the confusion in the question itself, remove duplicates, etc.

In this particular case, direct answer would be - "dunno what you mean by output channels" - is it sink input streams? specific audio channels on those (e.g. left/right/center/rear/etc)? sinks themselves? Use pulse.mute() for streams or sinks, but for specific channels you'd probably want to use volume control to set only those to 0 without muting the rest.