Skip to main content
Linux Audio·7 min read

How to Play Audio on Two Headphones at the Same Time on Linux (PipeWire/PulseAudio)

Step-by-step guide to playing audio through two headphones simultaneously on Linux using PipeWire, PulseAudio combine-sink, or the Multiout desktop app.

Sharing audio across two pairs of headphones on a Linux laptop or workstation—such as watching a film on a train or editing a podcast collaboratively—is a common desire. However, modern desktop environments (GNOME, KDE Plasma, XFCE) default to routing system sound to a single playback device at any given moment.

When you connect a 3.5 mm pair of earphones and a Bluetooth headset, selecting one in your system audio settings automatically silences the other.

In this guide, we explore the two primary methods to achieve simultaneous multi-headphone playback on Linux: the built-in terminal approach using PulseAudio/PipeWire's module-combine-sink, and the modern automated GUI method using the open-source Multiout desktop app.


Method 1: The Command-Line Approach (module-combine-sink)

Both PulseAudio and modern PipeWire setups (via pipewire-pulse) include a daemon module called module-combine-sink. This module creates a virtual audio device (a "sink") that duplicates incoming audio frames to two or more physical outputs.

Step 1: Identify Your Hardware Sink Names

First, open your terminal and list all currently detected audio output sinks:

pactl list short sinks

You will see output similar to this:

45  alsa_output.pci-0000_00_1f.3.analog-stereo  module-alsa-card.c  s16le 2ch 48000Hz  SUSPENDED
72  bluez_output.00_1B_66_81_2A_EC.1            module-bluez5-device.c s16le 2ch 48000Hz  SUSPENDED

Take note of the exact names in the second column:

  • alsa_output.pci-0000_00_1f.3.analog-stereo (Your built-in 3.5 mm headphone jack)
  • bluez_output.00_1B_66_81_2A_EC.1 (Your Bluetooth headphones)

Step 2: Load the Combined Sink Module

Load the module temporarily by specifying your target sinks separated by commas:

pactl load-module module-combine-sink \
  sink_name=combined_headphones \
  sink_properties=device.description="Simultaneous_Headphones" \
  slaves=alsa_output.pci-0000_00_1f.3.analog-stereo,bluez_output.00_1B_66_81_2A_EC.1

If the command succeeds, it will print an integer module index (e.g., 28).

Step 3: Switch Your Default Audio Output

Open PulseAudio Volume Control (pavucontrol) or go to GNOME Settings → Sound. You will see a new output device named Simultaneous_Headphones. Set it as your default output device.

Step 4: Clean Up When Done

Because module-combine-sink remains loaded in memory until the audio server restarts, you must manually unload it when you disconnect your headphones:

pactl unload-module 28

(Replace 28 with the module index returned in Step 2).


Limitations of the Manual module-combine-sink Method

While module-combine-sink is a powerful low-level primitive, it has notable practical downsides for everyday users:

  1. Sink Names Change Constantly: If you unplug a USB DAC or disconnect Bluetooth, device IDs and sink names change, requiring you to re-run pactl list short sinks and re-type the command.
  2. Bluetooth Codec Delay (Echo Effect): Bluetooth headsets typically introduce 80 ms to 180 ms of wireless latency. Analog 3.5 mm jacks have ~5 ms latency. module-combine-sink plays both simultaneously, creating a disorienting acoustic echo chamber between the two listeners.
  3. No Independent Decibel Calibration: If one friend has high-impedance studio cans (e.g., 250-ohm Beyerdynamics) and the other has sensitive 16-ohm in-ear monitors, one person will be deafened while the other struggles to hear whispers.
  4. Hardware Clock Drift: Over 20–30 minutes, unsynchronized DAC crystal clocks will drift apart, occasionally forcing buffer resets or audio dropouts.

Method 2: The Modern GUI Way (Multiout)

For an effortless, reliable experience, Multiout is a dedicated open-source desktop app built in Go and Fyne designed specifically for simultaneous multi-device audio routing.

Why Multiout is Better for Linux Users

  • Instant Hardware Detection: Automatically discovers newly plugged-in 3.5 mm jacks, USB DACs, and paired Bluetooth headsets with a one-click rescan button.
  • Closed-Loop PI Clock Drift Compensation: Automatically micro-resamples audio within ±5000 ppm to ensure the two soundcards never crackle, pop, or de-sync over hours of playback.
  • Per-Device Latency Delay Offset (0–300 ms): Add 100 ms of delay to the wired 3.5 mm output so both listeners hear dialogue at the exact same millisecond as the Bluetooth headphones.
  • Individual Decibel Sliders (-60 dB to +12 dB): Calibrate volume for each listener independently, including a +12 dB boost for quiet audio files or high-impedance headphones.
  • Zero-Allocation Engine: Audio callbacks run on lock-free atomic ring buffers with 0.0 heap allocations during playback, avoiding runtime garbage collection hiccups.
  • Automatic Cleanup: Multiout creates its virtual routing sink on launch and cleanly restores your default desktop audio configuration when closed.

How to Install Multiout on Ubuntu & Debian

Download the official .deb package from GitHub Releases and install it via apt:

# Download and install the latest v1.1.0 release
sudo apt update
sudo apt install ./multiout_linux_v1.1.0_amd64.deb

Once installed, launch Multiout from your application menu or terminal (multiout). Toggle on your two output devices, adjust volume to taste, and enjoy crystal-clear shared audio.


Summary Comparison

| Feature | module-combine-sink (CLI) | Multiout (Desktop App) | | :--- | :---: | :---: | | Interface | Terminal command | Clean Modern GUI | | Bluetooth Latency Alignment | Manual config file hacking | 0–300 ms Visual Slider | | Per-Device Volume Controls | Inconvenient (pactl set-sink-volume) | Individual dB Headroom Sliders | | Clock Drift Prevention | PulseAudio default resampler | Closed-Loop PI Control Loop | | Plug & Play Auto-Discovery | No (manual terminal queries) | Yes (One-Click Rescan) | | Cost & License | Free (GPL/LGPL) | Free & Open Source (MIT) |

Whether you need a quick one-line terminal script or a polished GUI with latency alignment, Linux provides robust tools to share audio. For ongoing daily use, Multiout provides the speed, precision, and zero-headache experience you expect from modern software.

Multiout Audio Tool

Try Multiout for 1-Click Multi-Headphone Sound

Skip cumbersome config scripts, loopback latency echoes, and clock drift crackle. Multiout provides clean real-time drift compensation, independent decibel volume, and millisecond delay alignment on Windows and Linux.

SS
Built by Sagar Sharma·@codesbysagar

Go backend and systems developer. Passionate about real-time audio synchronization and lightweight software.