summaryrefslogtreecommitdiffstats
path: root/src/resampler.h
blob: 257ba6628004a28e2518aa32338075096e7a0cc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef fooresamplerhfoo
#define fooresamplerhfoo

#include "sample.h"
#include "memblock.h"
#include "memchunk.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);
void resampler_run(struct resampler *r, const struct memchunk *in, struct memchunk *out);

#endif