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

Lennart Poettering lennart at poettering.net
Thu Oct 29 08:17:42 PDT 2009


On Thu, 29.10.09 16:36, Leszek Koltunski (leszek at koltunski.pl) wrote:

> >
> > Look at pulseaudio.desktop and start-pulseaudio-x11. These do exactly that
> > just now.
> >
> > The script would need modified for this use case (as it registers X session
> > handler too, not just the publication) but in theory, just running
> > start-pulseaudio-x11 on each display should get you the necessary gubbins
> > loaded (albeit one of session modules will fail to load, but you can
> > probably just ignore that - the error is suppressed anyway).
> 
> 
> Hmm.. in that case my patch does not finish the job - potential users still
> have to modify the /usr/bin/start-pulseaudio-x11 binary in order to load the
> modules the right way.
> 
> Couldn't we have something like '/etc/pulse/x11.conf' which would be read by
> /usr/bin/start-pulseaudio-x11 ? I could cook something like that together,
> but would that be accepted? Comments?

I thought about that too. And I think it would make sense. However
this should be a .pa file the same way as system.pa and default.pa,
maybe called session.pa.

However, I am not entirely sure how to implement this best. Just
piping that file to pacmd is not enough since we need to do variable
substitution. I haven't fully made my mind up on this yet.

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/           GnuPG 0x1A015CC4



More information about the pulseaudio-discuss mailing list