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

Nick Thompson rextanka at comcast.net
Fri Jun 13 09:31:54 PDT 2008


On Jun 8, 2008, at 3:58 PM, Lennart Poettering 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.

I added a hook for PA_CORE_HOOK_SINK_INPUT_PUT, but the calling  
sequence seems off from what Lennart described.  However this may be  
because I need to get a call to _put somewhere.  I just used aplay and  
paplay with a wav file for quick testing.

My pulg-in is a little different to the ones provided in that it does  
not directly create sink-inputs and so I don't call _put myself.

What I see in the plugin is that my handler for  
PA_CORE_HOOK_SINK_INPUT_PUT gets called immediately after the file  
ceases streaming.  Which is not as expected.

Is my plug expected to call _put?  I thought I would monitor the sink  
using PA_CORE_HOOK_SINK_INPUT_CHANGED, but it seems the only calls  
there are for notifying the stream is corked/uncorked.

I'll keep looking at this, but any pointers appreciated.

Thanks

Nick



More information about the pulseaudio-discuss mailing list