summaryrefslogtreecommitdiffstats
path: root/src/sample.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-06-15 15:18:33 +0000
committerLennart Poettering <lennart@poettering.net>2004-06-15 15:18:33 +0000
commit78f386ad45dc046d673fca5441dff188a7297059 (patch)
tree9ffa89fb46457318184e0531bb0e68d3817ceb4d /src/sample.h
parent98f41f1e70e66dcfc4c457ae47bffb07ed83947f (diff)
more work
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@17 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/sample.h')
-rw-r--r--src/sample.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/sample.h b/src/sample.h
index ecbe33f2..651788ba 100644
--- a/src/sample.h
+++ b/src/sample.h
@@ -27,7 +27,15 @@ struct sample_spec {
extern struct sample_spec default_sample_spec;
struct memblock *silence(struct memblock* b, struct sample_spec *spec);
-void add_clip(struct memchunk *target, struct memchunk *chunk, struct sample_spec *spec);
+
+
+struct mix_info {
+ struct memchunk chunk;
+ uint8_t volume;
+ void *userdata;
+};
+
+size_t mix_chunks(struct mix_info channels[], unsigned nchannels, void *data, size_t length, struct sample_spec *spec) {
size_t bytes_per_second(struct sample_spec *spec);
size_t sample_size(struct sample_spec *spec);