add resampler

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@44 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2004-07-02 18:47:03 +00:00
parent 961fb4466a
commit 13b35a2489
12 changed files with 357 additions and 16 deletions

15
src/resampler.h Normal file
View file

@ -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