From 3396b65f15a06ff312e318bc05e502ba402c564e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 14 Sep 2007 21:51:05 +0000 Subject: simplify rt loops a bit by moving more code into pa_rtpoll. It is now possible to attach "work" functions to a pa_rtpoll_item, which will be called in each loop iteration. This allows us to hide the message processing in the RT loops and to drop the seperate sink_input->process hooks. Basically, only the driver-specific code remains in the RT loops. git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1822 fefdeb5f-60dc-0310-8127-8f9354f1896f --- src/pulsecore/sink.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/pulsecore/sink.c') diff --git a/src/pulsecore/sink.c b/src/pulsecore/sink.c index b009bc77..a7ed5a40 100644 --- a/src/pulsecore/sink.c +++ b/src/pulsecore/sink.c @@ -922,20 +922,3 @@ int pa_sink_suspend_all(pa_core *c, int suspend) { return ret; } -int pa_sink_process_inputs(pa_sink *s) { - pa_sink_input *i; - void *state = NULL; - int r; - - pa_sink_assert_ref(s); - - if (!PA_SINK_LINKED(s->thread_info.state)) - return 0; - - while ((i = PA_SINK_INPUT(pa_hashmap_iterate(s->thread_info.inputs, &state, NULL)))) - if (i->process) - if ((r = i->process(i))) - return r; - - return 0; -} -- cgit