diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-07-02 18:47:03 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-07-02 18:47:03 +0000 |
commit | 13b35a2489e7e1d6341effe6e25b8cb8a0a94a02 (patch) | |
tree | d058c8021b02ec17583c3a95dd8a18e27c0e1a4c /src/resampler.h | |
parent | 961fb4466a9396a11f1a9a6e7d4193409b8949d6 (diff) |
add resampler
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@44 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/resampler.h')
-rw-r--r-- | src/resampler.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/resampler.h b/src/resampler.h new file mode 100644 index 00000000..000f73ce --- /dev/null +++ b/src/resampler.h @@ -0,0 +1,15 @@ +#ifndef fooresamplerhfoo +#define fooresamplerhfoo + +#include "sample.h" +#include "memblock.h" + +struct resampler; + +struct resampler* resampler_new(const struct pa_sample_spec *a, const struct pa_sample_spec *b); +void resampler_free(struct resampler *r); + +size_t resampler_request(struct resampler *r, size_t out_length); +int resampler_run(struct resampler *r, struct memchunk *in, struct memchunk *out); + +#endif |