diff options
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 |