On Mon, 2011-05-30 at 20:19 +0300, Tanu Kaskinen wrote:
> On Mon, 2011-05-30 at 23:10 +0800, Lin, Mengdong wrote:
> > Now I suspect the resampling is problematic, how to check the data from a 
> > single input stream before resampling?
> 
> There are no ready-made tools for that. If you want to hack the code,
> then you can write something in the function sink_input_pop_cb() in
> protocol-native.c. That function is called whenever a sink wants more
> data from a sink input (if the sink input is created by the native
> protocol, that is - other sink inputs have implementations elsewhere,
> but GTalk probably is a native protocol client unless you're doing
> something crazy).

Or actually, if you want to implement something generic, it probably
would make sense to do your stuff where the callback is called, ie.
pa_sink_input_peek() in sink-input.c.

-- 
Tanu

_______________________________________________
pulseaudio-discuss mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

Reply via email to