[pulseaudio-discuss] sink-input.c: pa_sink_input_new vs PA_CORE_HOOK_SINK_INPUT_FIXATE

Nick Thompson rextanka at comcast.net
Mon Jun 9 11:20:34 PDT 2008


On Jun 8, 2008, at 3:58 PM, Lennart Poettering wrote:

> On Fri, 16.05.08 09:58, Nick Thompson (rextanka at comcast.net) wrote:
>
> ...

>
> You are aware of PA_CORE_HOOK_SINK_INPUT_PUT? It's called when the
> sink input is actually made available to the PA system, i.e. after
> creation and after the code implementing the sink input actaully
> filled in all method pointers.
>
>>
>> Would moving FIXATE towards the end of the routine be appropriate (I
>> suspect that moving it could have undesirable side effects if  
>> external
>> hook functions in people's modules  were relying on returning  
>> anything
>> other than PA_HOOK_OK, or in further manipulating data.  However
>> manipulating the data after it's been verified is a potentially risky
>> move).
>
> No. FIXATE is there to do fixation of the sink input parameters. What
> you really want is the _PUT hook, as far as I understood your problem.

Cool, thanks, Lennart, I'll rewrite my plug-in to use this method.

Thank you!

Nick



More information about the pulseaudio-discuss mailing list