summaryrefslogtreecommitdiffstats
path: root/src/sourceoutput.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-07-03 00:19:17 +0000
committerLennart Poettering <lennart@poettering.net>2004-07-03 00:19:17 +0000
commit741aa44ffc8afd63cd29e5ae46f778dc68340df8 (patch)
tree2838bb11c8db75119cc3224ee7c93fb195e468d5 /src/sourceoutput.h
parent13b35a2489e7e1d6341effe6e25b8cb8a0a94a02 (diff)
add resampling
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@45 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/sourceoutput.h')
-rw-r--r--src/sourceoutput.h9
1 files changed, 7 insertions, 2 deletions
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