Created
March 14, 2015 21:35
-
-
Save perpetual-hydrofoil/ff528c838d55bf8ece7b to your computer and use it in GitHub Desktop.
Linux: send sound to multiple sound cards simultaneously
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
cat << EOM | |
Combining your Pulse Audio sinks (outputs) and giving you another, combined set of speakers that looks like another sound card. | |
Perfect so that you can direct output to headphones and speakers at the same time. | |
Use pavucontrol to even end output of different apps (or different browser windows) to different speakers at the same time. | |
Listen to one youtube video out of your speakers while gaming in your headphones! | |
See http://www.deseret-tech.com/journal/pulseaudio-combine-sinks-for-simultaneous-output/ for tips. | |
This command actually gives you a third combined sink. | |
EOM | |
pacmd load-module module-combine-sink sink_name=combined slaves=$(pacmd list-sinks|grep alsa_out|sed "s/.*<//"|sed "s/>//"|tr '\n' ,|sed "s/,$//") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment