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/sinkinput.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/sinkinput.h') diff --git a/src/sinkinput.h b/src/sinkinput.h index e3114d94..8899a9ed 100644 --- a/src/sinkinput.h +++ b/src/sinkinput.h @@ -6,6 +6,7 @@ #include "sink.h" #include "sample.h" #include "memblockq.h" +#include "resampler.h" struct sink_input { uint32_t index; @@ -21,9 +22,12 @@ struct sink_input { uint32_t (*get_latency) (struct sink_input *i); void *userdata; + + struct memchunk resampled_chunk; + struct resampler *resampler; }; -struct sink_input* sink_input_new(struct sink *s, struct pa_sample_spec *spec, const char *name); +struct sink_input* sink_input_new(struct sink *s, const char *name, const struct pa_sample_spec *spec); void sink_input_free(struct sink_input* i); /* Code that didn't create the input stream should call this function to @@ -33,7 +37,7 @@ void sink_input_kill(struct sink_input *i); uint32_t sink_input_get_latency(struct sink_input *i); char *sink_input_list_to_string(struct core *c); - - +int sink_input_peek(struct sink_input *i, struct memchunk *chunk); +void sink_input_drop(struct sink_input *i, size_t length); #endif -- cgit