nightfrost
November 16th, 2008, 12:58 PM
Does anyone know how one goes about configuring pulseaudio to play audio on two sinks simultaneously?
I found this (http://www.pulseaudio.org/wiki/FAQ#CanIusePulseAudiotoplaybackmusicontwosoundcard ssimultaneously) on the Pulseaudio FAQ:
Can I use PulseAudio to playback music on two sound cards simultaneously?
Yes! Use module-combine for that.
load-module module-oss-mmap device="/dev/dsp" sink_name=output0
load-module module-oss-mmap device="/dev/dsp1" sink_name=output1
load-module module-combine sink_name=combined master=output0 slaves=output1
set-sink-default combined
This will combine the two sinks output0 and output1 into a new sink combined. Every sample written to the latter will be forwarded to the former two. PulseAudio will make sure to adjust the sample rate of the slave device in case it deviates from the master device. You can have more than one slave sink attached to the combined sink, and hence combine even three and more sound cards.
So I guess it should be possible to tweak that to be valid for two sinks on different clients. However, I don't understand how to assign names to the devices, so I can use those names with the module-combine.
Here's the pulseaudio configuration on the local machine: http://dl.getdropbox.com/u/175461/pulse/default.pa.local
And here's the configuration on the other machine (which starts pulseaudio as a system service, FWIW): http://dl.getdropbox.com/u/175461/pulse/default.pa.remote
Thanks in advance!
I found this (http://www.pulseaudio.org/wiki/FAQ#CanIusePulseAudiotoplaybackmusicontwosoundcard ssimultaneously) on the Pulseaudio FAQ:
Can I use PulseAudio to playback music on two sound cards simultaneously?
Yes! Use module-combine for that.
load-module module-oss-mmap device="/dev/dsp" sink_name=output0
load-module module-oss-mmap device="/dev/dsp1" sink_name=output1
load-module module-combine sink_name=combined master=output0 slaves=output1
set-sink-default combined
This will combine the two sinks output0 and output1 into a new sink combined. Every sample written to the latter will be forwarded to the former two. PulseAudio will make sure to adjust the sample rate of the slave device in case it deviates from the master device. You can have more than one slave sink attached to the combined sink, and hence combine even three and more sound cards.
So I guess it should be possible to tweak that to be valid for two sinks on different clients. However, I don't understand how to assign names to the devices, so I can use those names with the module-combine.
Here's the pulseaudio configuration on the local machine: http://dl.getdropbox.com/u/175461/pulse/default.pa.local
And here's the configuration on the other machine (which starts pulseaudio as a system service, FWIW): http://dl.getdropbox.com/u/175461/pulse/default.pa.remote
Thanks in advance!