[pulseaudio-discuss] pacmd get-default-sink?

Colin Guthrie gmane at colin.guthr.ie
Wed Jan 6 04:20:44 PST 2010


'Twas brillig, and David Henningsson at 06/01/10 11:33 did gyre and gimble:
> is there a way, e g via pacmd, to get the current default/fallback
> playback (and record) device? There is no get-default-sink command.
> List-sinks shows a "priority" item, is this something I can reliably
> use, i e take the highest value to get the current fallback device?

pactl stat | grep Default

But please remember that the pacmd thing is not really a proper
pulseaudio client, and you should really use pactl for command line
integration whenever possible (pacmd does expose more stuff for
development/debugging etc.)

Col

-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mandriva Linux Contributor [http://www.mandriva.com/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]




More information about the pulseaudio-discuss mailing list