Routing audio from one sound card to another

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Jay,

yes, this is possible with pulseaudio. You can do this with manual commands
on the terminal. If you are satisfied you also can put this into your
configuration files so it's always activated at login.

First you need a list of sinks (pulseaudio outputs).

For me it looks this way (for you it may suffer from line breaks in emails):

# pactl list sinks short
0       alsa_output.pci-0000_00_1b.0.analog-stereo      module-alsa-card.c
     s16le 2ch 44100Hz       RUNNING
1       alsa_output.pci-0000_01_00.1.hdmi-stereo        module-alsa-card.c
     s16le 2ch 44100Hz       IDLE

it's listing all alsa sinks and so it shows my analog output and the HDMI
one. Assuming I want to have simultaneous output on both, I will load a
pulseaudio module named "module-combine-sink" using these options:

pactl load-module module-combine-sink
slaves=alsa_output.pci-0000_00_1b.0.analog-stereo,alsa_output.pci-0000_01_00.1.hdmi-stereo

(all one line, in case it breaks for you)

Now I can start playing in any application, and then I open pavucontrol.
There under "Playback" you can choose for any stream to which sink it is
routed. Here you can choose the new simultaneous sink you just created. And
immediately the audio will be sent to both alsa outputs.


2013/12/3 Dolevo Jay <cmst at live.com>

> Hi all,
>
> I am very new to pulseaudio and also to in this mailing list.
> I have a pc where I have two sound cards. I have a software application
> which receives audio signals from network and plays it using alsa. However,
> I have two sound cards in the system and I need to have the same audio from
> the other sound card as well. I tried to do this in alsa but couldn't
> manage it. Therefore, I ended up here in pulseaudio. However, I have no
> idea where to start and how to implement it. Is it just a matter of
> configuration file? My purpose is to copy the audio which is being played
> in the other sound card.
>
> Thanks a lot for your guidance.
>
>
>
> _______________________________________________
> pulseaudio-discuss mailing list
> pulseaudio-discuss at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20131203/51a3e422/attachment.html>


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux