[pulseaudio-discuss] [PATCH 04/25] printout pthread id number in pulseaudio log

Colin Guthrie gmane at colin.guthr.ie
Tue Aug 9 06:52:03 PDT 2011


'Twas brillig, and Pierre-Louis Bossart at 08/08/11 18:22 did gyre and
gimble:
>>> Do you think it's better to invoke pa_thread_new("alsa-sink 0", func,
>> u)
>>> or adding another index after the plain name? (e.g.
>>> pa_thread_new("alsa-sink", index, func, u))
>>
>> I've not looked at the code, but if we know the sink index by this
>> stage
>> (I'm not sure we do?) then yes that could be helpful.
>>
>> Pierre will probably know if this is practically useful tho'. I suppose
>> in most cases testing and probing will be done with only one sink
>> anyway
>> so there is no doubt which one owns the thread :p
> 
> I like the second option better. Ideally the index should match the sink
> index to that you can query with pactl which sink is really being used. The
> index in itself isn't terribly useful if it depends on the
> configuration/profiles.

Just for fun, I've implemented this approach. If there is some crazy
situation when multiple alsa sinks are used (perhaps involving bluetooth
connecting to an alsa sink which I know is supported), then this could
be useful.

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