From 741aa44ffc8afd63cd29e5ae46f778dc68340df8 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 3 Jul 2004 00:19:17 +0000 Subject: add resampling git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@45 fefdeb5f-60dc-0310-8127-8f9354f1896f --- src/sink.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/sink.c') diff --git a/src/sink.c b/src/sink.c index 8a510f1b..2ecb6445 100644 --- a/src/sink.c +++ b/src/sink.c @@ -90,8 +90,7 @@ static unsigned fill_mix_info(struct sink *s, struct mix_info *info, unsigned ma assert(s && info); for (i = idxset_first(s->inputs, &index); maxinfo > 0 && i; i = idxset_next(s->inputs, &index)) { - assert(i->peek); - if (i->peek(i, &info->chunk) < 0) + if (sink_input_peek(i, &info->chunk) < 0) continue; info->volume = i->volume; @@ -115,11 +114,10 @@ static void inputs_drop(struct sink *s, struct mix_info *info, unsigned maxinfo, assert(i && info->chunk.memblock); memblock_unref(info->chunk.memblock); - assert(i->drop); - i->drop(i, length); + sink_input_drop(i, length); } } - + int sink_render(struct sink*s, size_t length, struct memchunk *result) { struct mix_info info[MAX_MIX_CHANNELS]; unsigned n; -- cgit