[pulseaudio-discuss] How to play a sound both on headphone and speaker and line-out?

Bob Weber bob2969685 at gmail.com
Mon Jul 16 18:20:10 UTC 2018


On 7/15/18 8:05 AM, Ali Shirvani wrote:
> Hi all,
>
> I want to play sound on all output ports of sound card, includes headphone, 
> speaker and line out. I found that I should define new profile for the sound 
> card that includes all required output ports.
>
> I changed `/usr/share/pulseaudio/alsa-mixer/profile-sets/default.conf` file 
> and uncommented last lines and changed the `auto-profile = no`, but 
> unfortunately it doesn't work.
>
> Would you please help me to define a custom profile to play sound on all 
> output ports?
>
> Regards,
> Ali Shirvani
>
> _______________________________________________
> pulseaudio-discuss mailing list
> pulseaudio-discuss at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

This may be a limitation of the sound card you are using.  It may not be able to 
output to all three ports at once.  It might be helpful to see the output of the 
Audio device line(S) from the command run as the normal logged in user:

lspci

I use pulse audio and I regularly switch  between audio output devices using the 
convenient pavucontrol app for pulse audio.  I just tested module-loopback and 
module-combine-sink and was able to play a chrome Netflix tab on my bluetooth 
connected headphones and a USB connected audio device connected to another set 
of headphones.  The module-combine-sink seems to be the way to go if you want 
more than 2 output devices.  The process is to load the module-combine-sink with 
pactl ... "pactl load-module module-combine-sink" ... then use pavucontrol to 
connect the input (sink) of module-combine-sink and its output to devices on 
your system.  No messing with rc files.

Depending on your needs you may need a USB audio device.  I use the BEHRINGER 
XENYX 302USB ($50 on Amazon).  It provides 2 inputs (mic and line) that can be 
mixed and brought back to the computer and also a USB audio out that can be sent 
to line out and a headphone jack simultaneously.  So that gets you 2 outputs.  
The third could be sent to the computer's audio device output all done with 
module-combine-sink and pavucontrol.  The BEHRINGER XENYX 302USB also gets you 
bass, treble and pan controls.  Plus you would have the ability to send 2 
different sound sources to the internal audio card and the USB BEHRINGER XENYX 
302USB ... so music in another room (wired) and watch a movie on the computer. 
Add a bluetooth gateway connected to a HiFi in another room (about 30 feet 
range) and you have a third output to send another source to with a few settings 
in pavucontrol and the appropriate modules loaded if necessary.

Note:  I use bluetooth a lot and have been through many problems with getting 
KDE plasma to connect (all fixed now) and dropouts from the wireless router 
using the lower band that directly conflicts with the bluetooth band of 
frequencies.  So the fix was using the 5GHz band wifi.

..Bob


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20180716/ab6eb45a/attachment.html>


More information about the pulseaudio-discuss mailing list