summaryrefslogtreecommitdiffstats
path: root/src/resampler.h
blob: 000f73cedf79a2bc9821bd20e5fe4ff8a9a0215f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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