Is there a spec/blueprint for this some where?<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
>-----Original Message-----<br>
>From: <a href="mailto:pulseaudio-discuss-bounces@mail.0pointer.de" target="_blank">pulseaudio-discuss-bounces@mail.0pointer.de</a> [mailto:<a href="mailto:pulseaudio-" target="_blank">pulseaudio-</a><br>
><a href="mailto:discuss-bounces@mail.0pointer.de" target="_blank">discuss-bounces@mail.0pointer.de</a>] On Behalf Of Lennart Poettering<br>
>Sent: 2009Äê1ÔÂ23ÈÕ 6:36<br>
>To: <a href="mailto:pulseaudio-discuss@mail.0pointer.de" target="_blank">pulseaudio-discuss@mail.0pointer.de</a><br>
>Subject: Re: [pulseaudio-discuss] why command_cork_playback_stream() will<br>
>be invoked many times?<br>
><br>
>On Tue, 20.01.09 10:13, pl bossart (<a href="mailto:bossart.nospam@gmail.com" target="_blank">bossart.nospam@gmail.com</a>) wrote:<br>
><br>
>> Hi Lennart,<br>
>> Here is the use case Xing is referring to: you are listening to music,<br>
>and a<br>
>> VoIP call starts. The user may not want to mix the music and the speech<br>
>> call.<br>
>><br>
>> So the idea is to pause the music while the call takes place, and resume<br>
>the<br>
>> music once the call finishes. PulseAudio receives both streams, and it<br>
>would<br>
>> seem natural to configure said behavior in a PulseAudio module. So we<br>
>either<br>
>> need the ability to pause a stream within PulseAudio, or we need a means<br>
>to<br>
>> inform the client they need to pause.<br>
>><br>
>> I agree with you that pausing may create timing havoc on the client; but<br>
>we<br>
>> are missing a generic protocol to notify the clients and implement this<br>
>> legitimate use case.<br>
><br>
>This issue has come up before. e.g. Nokia folks needs this kind of<br>
>policy enforcing module, too.<br>
><br>
>Simply pausing client streams without having explicit client support<br>
>for it is not really an option though. So I generally think the way<br>
>forward is like this:<br>
><br>
>1) Add an API to PA to allow informing clients of policy requests from the<br>
> server. i.e. add some mechanism so that clients that allocate a<br>
> pa_stream object can set a callback that is called whenever some<br>
> policy engine inside PA wants the client to stop/pause/resume<br>
> playback or has similar requests. It would then be up to the<br>
> client to actually do something about it and then pause the stream<br>
> and update the UI accordingly.<br>
><br>
> Such an "inline" policy request notification subsystem should be<br>
> trivial to add. This should probably be extensible so that we can add<br>
> further notifications such as keypresses from BT devices or jack<br>
> sensing events from the sink.<br>
><br>
>2) Add a GStreamer interface for events like this.<br>
><br>
>3) If a client doesn't handle these request the streams in question<br>
> should simply be muted/unmuted.<br>
><br>
>That's the rough plan I have. Patches always welcome.<br>
><br>
>Lennart<br>
><br>
>--<br>
>Lennart Poettering Red Hat, Inc.<br>
>lennart [at] poettering [dot] net ICQ# 11060553<br>
><a href="http://0pointer.net/lennart/" target="_blank">http://0pointer.net/lennart/</a> GnuPG 0x1A015CC4<br>
>_______________________________________________<br>
>pulseaudio-discuss mailing list<br>
><a href="mailto:pulseaudio-discuss@mail.0pointer.de" target="_blank">pulseaudio-discuss@mail.0pointer.de</a><br>
><a href="https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss" target="_blank">https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss</a><br>
_______________________________________________<br>
pulseaudio-discuss mailing list<br>
<a href="mailto:pulseaudio-discuss@mail.0pointer.de" target="_blank">pulseaudio-discuss@mail.0pointer.de</a><br>
<a href="https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss" target="_blank">https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>"A little rudeness and disrespect can elevate a meaningless interaction to a battle of wills and add drama to an otherwise dull day." - Calven<br>