PulseAudio

From Vague Hope Wiki
Revision as of 05:02, 22 July 2012 by Haku (Talk | contribs)

Jump to: navigation, search
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