Difference between revisions of "PulseAudio"

From Vague Hope Wiki
Jump to: navigation, search
Line 20: Line 20:
 
pacmd list-sink-inputs
 
pacmd list-sink-inputs
 
pacmd move-sink-input <x> <y>
 
pacmd move-sink-input <x> <y>
 +
</pre>
 +
 +
== pacmd ==
 +
 +
When running as shared service:
 +
(http://pulseaudio.org/ticket/222#comment:1)
 +
 +
bin/shared-pacmd
 +
<pre>
 +
#!/bin/bash
 +
if [ "$USER" == "pulse" ] ; then
 +
  export PULSE_RUNTIME_PATH=/var/run/pulse
 +
  pacmd
 +
else
 +
  sudo -u pulse "$0"
 +
fi
 
</pre>
 
</pre>
  

Revision as of 05:02, 22 July 2012

pacmd
pacmd help
pacmd list-modules
pacmd list-sinks
pacmd load-module module-tunnel-sink server=192.168.0.211
pacmd load-module module-combine sink_name=combined slaves="alsa_output.pci-0000_00_1b.0.analog-surround-40,tunnel-sink.192.168.0.211"
pacmd unload-module <number from list-modules>

Restart:

pulseaudio -k
speaker-test -c2

Move:

pacmd list-sinks
pacmd list-sink-inputs
pacmd move-sink-input <x> <y>

pacmd

When running as shared service: (http://pulseaudio.org/ticket/222#comment:1)

bin/shared-pacmd

#!/bin/bash
if [ "$USER" == "pulse" ] ; then
  export PULSE_RUNTIME_PATH=/var/run/pulse
  pacmd
else
  sudo -u pulse "$0"
fi

References