I have one sound card and one pair of Bluetooth headphones. I want to play my audio through both my sound card and my Bluetooth headphones.
I believe Windows has checkboxes that allow you to "check" outputs to enable/disable them, but Ubuntu seemingly has the equivalent of radio selectors (you can only select one at a time).
Bonus question: On a similar note, I have 5 analog output channels on my sound card (in addition to my digital & HDMI audio) -- I would like to be able to determine what comes out of each of those ports (e.g. "front speakers" on all 5 or "front", "center", "back", etc).
With
paprefs
you have access to a virtual output device that enables simultaneous output to all attached sound cards and devices:Then in the terminal run
paprefs
, select Simultaneous Output tab, and check Add virtual output for simultaneous output on all local sounds cards.The additionally created audio output device for simultaneous output may be selected in the Output tab from the PulseAudio Sound Preferences menu (
pavucontrol
):In this example it is shown for an HDMI-device, but, as soon as your Bluetooth device is recognized, it will also be available for simultaneous output.
The changes may need a restart of PulseAudio to take effect, either by logging out and back in to your session or by running
pulseaudio -k
in a terminal.In case
paprefs
does not do the job or if you prefer to havepaprefs
not installed, use this command from the command line:To unload the module from the command line and reset PulseAudio to defaults, just restart PulseAudio with:
or issue:
Ubuntu
I've just confirmed this solution still works on Ubuntu 14.04 LTS.
sudo apt install paprefs
go to the tab exactly as per the picture above and select the option.pulseaudio -k
to kill and restart pulseaudio (this way with current systemd pulseaudio user service).Apple Mac OS X
A similar solution is available via an included piece of software and whats so great about
pulseaudio
is that the sound seems to be perfectly in-sync from both outputs so it must be adjusting for the lag as well which is why its so impressive; otherwise we would be hearing a slightly delayed version from one output and another.In Kubuntu 18.04, Plasma 5.12
paprefs
is not needed, as a similar setting is already there:A new output option should become available after reboot, called “Simultaneous output”.
Or in
pavucontrol
:In 18.10 with Plasma 5.13.5 that “Simultaneous output” option has been removed, so
paprefs
is needed.I could not get Takkat's proposal work out of the box in Debian 8.7, although I restarted the system. I assume you have completed Takkat's proposal in installing
paprefs
. Extension on Takkat's answer which works based on Arch Linux wiki where keep analog input and Pulse calls that "duplex"Then restart pulseaudio:
Because
LeonidMew
was asking about 18.04 (I'm using18.04.2
), here's my version.The GUI
paprefs
tried to combine one HDMI with one analog output, instead of both hdmi. So I edited the file/etc/pulse/default.pa
as described byLéo Léopold Hertz
Both the following methods work on their own, so pick one (make sure to add these lines to the top of the file, I put it right after
.fail
! Otherwise it doesn't work).Method A
Method B
Reference
Method A
For reference, the
hw:0,0
comes fromaplay -l
Method B
And the
1:7
and1:3
comes fromOn the GNOME "sound settings" I set the other HDMI from 2nd monitor as output, and then re-ran the command
To verify these numbers are correct, I ran
which sounded on their respective monitors.
To complement the excellent answer from Takkat, I found the default name given to the new device was excessively long and distorted the Sound Settings dialog. In order to shorten that name, I had to additionally execute the following command: