summaryrefslogtreecommitdiff
path: root/resample.h
blob: 68a1f085040bf845d85368a80aadcab03671e1d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef RESAMPLE_H
#define RESAMPLE_H

#include <samplerate.h>
#include <glib.h>

SRC_STATE *resample_init(int channels, GError **error);
void resample(SRC_STATE *state, unsigned int from_rate, unsigned int to_rate, int channels,
		gpointer in_data, gsize in_size, gpointer *out_data, gsize *out_size, gboolean done, GError **error);
void resample_free(SRC_STATE *state);

#endif