summaryrefslogtreecommitdiffstats
path: root/resample.h
blob: e1ce8e6d1a0aacb571c527a377b3f92342f1b4c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef fooresamplehfoo
#define fooresamplehfoo

/* $Id$ */

#include "interpol.h"
#include "qbuf.h"

struct resample_state {
    float delta;

    int sfreq, dfreq;
    struct interpol_state interpol;
};

void resample_init(struct resample_state *s);
void resample_done(struct resample_state *s);
void resample_get(struct resample_state *s, struct qbuf *sq, struct qbuf *dq, int sfreq, int dfreq);

#endif