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/sourceoutput.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/sourceoutput.h') diff --git a/src/sourceoutput.h b/src/sourceoutput.h index 50cb9caf..4db2362d 100644 --- a/src/sourceoutput.h +++ b/src/sourceoutput.h @@ -6,6 +6,7 @@ #include "source.h" #include "sample.h" #include "memblockq.h" +#include "resampler.h" struct source_output { uint32_t index; @@ -14,17 +15,21 @@ struct source_output { struct source *source; struct pa_sample_spec sample_spec; - void (*push)(struct source_output *o, struct memchunk *chunk); + void (*push)(struct source_output *o, const struct memchunk *chunk); void (*kill)(struct source_output* o); + struct resampler* resampler; + void *userdata; }; -struct source_output* source_output_new(struct source *s, struct pa_sample_spec *spec, const char *name); +struct source_output* source_output_new(struct source *s, const char *name, const struct pa_sample_spec *spec); void source_output_free(struct source_output* o); void source_output_kill(struct source_output*o); char *source_output_list_to_string(struct core *c); +void source_output_push(struct source_output *o, const struct memchunk *chunk); + #endif -- cgit