[pulseaudio-discuss] RFC: Routing and Priority lists

Colin Guthrie gmane at colin.guthr.ie
Tue Nov 29 01:22:56 PST 2011


'Twas brillig, and Janos Kovacs at 28/11/11 14:52 did gyre and gimble:
> However, what hook could be used to compose the 'media.role-zone'
> property? In the proposal (ie. the patches) the routing is done before
> PA_CORE_HOOK_SINK_INPUT_NEW is called, so I guess that cannot
> be used.


Yeah I think I mentioned this chicken+egg on the wiki (or if I didn't I
had it in my head and *meant* to mention it!).

The problem is currently that module-stream-restore happens during
PA_CORE_HOOK_SINK_INPUT_NEW and as a result may assign a sink to a
stream which would mean that we wouldn't do the routing (i.e. for the
same reason that we wouldn't want to do any routing if they caller
specified a specific device to use when they connected their stream).

But this can be changed, and if we remove (or disable-by-default) the
restore-device part of module-stream-restore then the routing can happen
after PA_CORE_HOOK_SINK_INPUT_NEW hook and thus the property can be written.

That was my thinking at least.

Col


-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited http://www.tribalogic.net/
Open Source:
  Mageia Contributor http://www.mageia.org/
  PulseAudio Hacker http://www.pulseaudio.org/
  Trac Hacker http://trac.edgewall.org/



More information about the pulseaudio-discuss mailing list