summaryrefslogtreecommitdiffstats
path: root/src/bbuffer.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2007-10-01 20:16:28 +0000
committerLennart Poettering <lennart@poettering.net>2007-10-01 20:16:28 +0000
commit7d83e5c7816b5e343695a75ba58b32dbe1be969a (patch)
treebfd1dfc9b7c8f4a2aaf66c1b30e78355dee8c88a /src/bbuffer.h
parent762196328ab7e60f1d2908fd5a337d2ca99726dd (diff)
move all sources down to a seperate src/ tree
git-svn-id: file:///home/lennart/svn/public/libsydney/trunk@34 9ba3c220-e4d3-45a2-8aa3-73fcc9aff6ce
Diffstat (limited to 'src/bbuffer.h')
-rw-r--r--src/bbuffer.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/bbuffer.h b/src/bbuffer.h
new file mode 100644
index 0000000..6394a11
--- /dev/null
+++ b/src/bbuffer.h
@@ -0,0 +1,19 @@
+#ifndef foosydneybbufferhfoo
+#define foosydneybbufferhfoo
+
+#include <sys/types.h>
+
+/* Simple bounce buffer management routines */
+
+typedef struct sa_bbuffer {
+ void **data;
+ size_t *size;
+ unsigned nchannels;
+ size_t sample_size;
+} sa_bbuffer_t;
+
+int sa_bbuffer_init(sa_bbuffer_t *b, unsigned nchannels, size_t sample_size);
+void sa_bbuffer_done(sa_bbuffer_t *b);
+void* sa_bbuffer_get(sa_bbuffer_t *b, unsigned channel, size_t size, int interleave);
+
+#endif