[pulseaudio-discuss] DBus interface and source priority
whites11 at gmail.com
Mon Mar 22 19:30:40 UTC 2021
I am working on a golang software that aims at dealing (muting and
unmuting) with the currently enabled microphone in a Linux system using
My software is trying to use the DBUs interface to interact with pulseaudio.
If the computer has more than one microphone connected to it, I need to
find the enabled one by looking at the priority property of my sources.
For example this is a trimmed output from the pacmd list-sources command:
4 source(s) available.
* index: 4
In fact, in my system, the source with index 4 is the active one.
My problem: I can't find a way to get the priority property out of the DBUs
According to the documentation (
neither the Source nor the Device Objects expose a property named Priority.
The only objects having a Priority field are DevicePort and CardProfile. I
got the value for those properties but their value doesn't match with the
output of pacmd.
Can anybody please help me understand what I am missing here?
(also posted on stackoverflow here
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pulseaudio-discuss