Knowledge Base

Preserving for the future: Shell scripts, AoC, and more

PulseAudio send audio to 2 outputs

If you want to send audio to multiple outputs (that are not a part of the built-in sound card such as the headphone jack and the speaker jack) at the same time, you can use a feature of pulseaudio to accomplish this.

Technically this will generate a new sink that will send to all possible outputs, so I hope that is sufficient. I didn't dabble with the module parameters for listing the intended slave sinks.

You load an additional pulseaudio module, such as with this command. It does not give a custom name or choose specific sinks to use so it will use all sinks.

pactl load-module module-combine-sink

Or put this in your file /etc/pulse/default.pa.d/local.pa or similar:

load-module module-combine-sink sink_name=combined sink_properties=device.description="combined"
set-default-sink combined

If you do not give a short description (what lots of paradigms would call "display name"), it will use the default one which lists all devices, and it can overwhelm your menus when choosing an output device!

References

Weblinks

  1. pulseaudio - Play sound through two or more outputs/devices - Ask Ubuntu

Comments