[pulseaudio-tickets] [Bug 46412] Need to obtain PA's sample rate

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Feb 21 12:50:29 PST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=46412

--- Comment #2 from Tanu Kaskinen <tanuk at iki.fi> 2012-02-21 12:50:29 PST ---
With dmix, I think the underlying sound card is selected already during
snd_pcm_open(), am I right? The problem is then that the sound card is not
selected yet at that point when using pulseaudio as the backend. The stream
routing decision is done only at the time when the stream is created (I don't
know exactly in which alsa function that is done, but surely not
snd_pcm_open()).

It sounds feasible to me, though, to open the Pulseaudio stream already in some
earlier phase, if one or more NO_AUTO_FOO flags are given. Pulseaudio supports
creating streams with "fixed" parameters, which means that the stream
parameters will get set according to the sink that it is routed to. After the
stream has been created, it's possible for the application to query the
parameters.

So that's my understanding of the reason why things don't currently work as
you'd like, and a possible approach for fixing it. Does someone want to try
writing a patch?

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the pulseaudio-bugs mailing list