summaryrefslogtreecommitdiffstats
path: root/resample.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2007-05-12 23:38:38 +0000
committerLennart Poettering <lennart@poettering.net>2007-05-12 23:38:38 +0000
commita64e85acf96bc0c55363fe55c9e9116aef2a8584 (patch)
tree69ec57b46bdebe0e7496bf11ea9a54cdf5806904 /resample.h
parent2eb6dec8e9f0114bdbad59cf8f11f197f8fdaaf3 (diff)
resampling works
git-svn-id: file:///home/lennart/svn/public/libsydney/trunk@4 9ba3c220-e4d3-45a2-8aa3-73fcc9aff6ce
Diffstat (limited to 'resample.h')
-rw-r--r--resample.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/resample.h b/resample.h
new file mode 100644
index 0000000..4e9fae3
--- /dev/null
+++ b/resample.h
@@ -0,0 +1,14 @@
+#ifndef foosydneyresamplehfoo
+#define foosydneyresamplehfoo
+
+#include <sys/types.h>
+#include <inttypes.h>
+
+#include "sydney.h"
+#include "speex/speex_resampler.h"
+
+typedef void (*resample_func_t) (SpeexResamplerState *speex, unsigned channel, void *dst, size_t dstr, const void *src, size_t sstr, size_t in_bytes, size_t *out_bytes);
+
+resample_func_t get_resample_func(sa_pcm_format_t f);
+
+#endif