[pulseaudio-discuss] Automatic selection of an audio sink depending on value of ENV variable

Ng Oon-Ee ngoonee at gmail.com
Wed Oct 28 21:47:39 PDT 2009


On Thu, 2009-10-29 at 12:03 +0800, Leszek Koltunski wrote:
> 
> Well, the patch is there; you can go apply it, then load two
> 'module-x11-publish' :
> 
> load-module module-x11-publish display=":0.0" sink=foo
> load-module module-x11-publish display=":0.1" sink=bar
> 
> and voilla! It's working automagically. 
> 
> ( BTW, what is the best way to load the modules? I put the above two
> lines in /etc/pulse/default.pa, and it's working, but there's a
> comment there 'X11 modules should not be started from default.pa so
> that one daemon can be shared by multiple sessions' . So how? )

Not sure on the mechanics of it, but if not through default.pa you could
always script a `pactl load-module module-x11....`

However, I'm sure there's reasons for the warning, so my suggestion is
probably just another way of doing what's not a very good idea.





More information about the pulseaudio-discuss mailing list