[pulseaudio-discuss] default sink
ritesh at cs.unc.edu
Tue Dec 18 13:11:06 PST 2007
On Dec 18, 2007 1:42 PM, Lennart Poettering <lennart at poettering.net> wrote:
> On Mon, 17.12.07 18:07, Ritesh Kumar (ritesh at cs.unc.edu) wrote:
> > > I'd say the intuitiveness depends on whether one's intuition
> > > says that the client connects to a sink (routing decision
> > > done at client connection time) or to the pulseaudio daemon
> > > (routing decision done at stream creation time). The
> > > asynchronous client API supports the view that client
> > > connects to the daemon, because the desired sink is supplied
> > > only when creating a new stream.
> > >
> > I guess you are right... probably I will write a module on the lines of
> > volume-restore to achieve the effect I need. I seems intuitive to me
> > the media player that I use (quodlibet through alsa-pulse), creates a
> > stream for every song (I don't know the details but I am guessing that
> > media player may need to do this because different songs can have
> > sample rates/formats). This causes subsequent songs from the same media
> > player to move to a different sink if the default sink is changed...
> > in my view is non-intuitive :).
> If you have loaded module-volume-restore than this should not
> happen, because m-v-r remembers the device/volume for the application
> using the application name as a key. And as soon as the new stream is
> created and the application name is recognized the default
> device/volume for its streams is restored.
That's right... but module-volume-restore remembers the sink for the client
between client connects. So the next time the same client connects,
module-volume-restore will not assign its streams to the default sink but
one that it has saved.
Basically, I need a module which assigns the default sink to a new
connecting client and passes all its streams to that sink regardless of the
current default sink (by default pulseaudio uses the default sink for any
new sink-inputs). However, if the client disconnects and connects again, it
should use the new default sink for the streams of the client
(module-volume-restore preserves the sink for the client between client
connects). The module could be called some thing like
module-preserve-client-sink or something.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pulseaudio-discuss