summaryrefslogtreecommitdiffstats
path: root/src/sinkinput.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/sinkinput.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/sinkinput.h')
-rw-r--r--src/sinkinput.h10
1 files changed, 7 insertions, 3 deletions
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