[pulseaudio-tickets] [Bug 39797] module-cork-music-on-phone unable to send CORK event to pulsesink for PA_STREAM_START_CORKED streams

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Aug 19 06:52:25 PDT 2011


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

--- Comment #7 from Tanu Kaskinen <tanuk at iki.fi> 2011-08-19 06:52:25 PDT ---
I'm not sure if the following solution works in this case. If I understood
correctly, the problem here is that module-cork-music-on-phone sends a cork
request to the client, but the client uncorks the stream soon after that. To
solve this at the server end we would have to know why the client is uncorking
the stream - is it reacting to a request from module-cork-music-on-phone or
something else. This information is not available, and I don't see any solution
to this other than extending the client API in some way.

Anyway, here's a proposal for handling corking, suspending and muting (I'll use
corking as the example, but the same principle applies to suspending and muting
too):

Corking should work so that when some component wants to cork a stream, it
should create a "cork object". The cork object gets attached to the stream. The
stream may have multiple cork objects attached; there may be multiple
components wanting to cork a stream at the same time. The stream should stay
corked as long as there is at least one cork object attached to it.

-- 
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