From af96e1ce92c751f92cdb862985d1abe7362a6e59 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Wed, 13 Oct 2010 19:04:46 +0200 Subject: Resample files when transcoding to mp3 using libsamplerate. --- resample.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 resample.h (limited to 'resample.h') diff --git a/resample.h b/resample.h new file mode 100644 index 0000000..68a1f08 --- /dev/null +++ b/resample.h @@ -0,0 +1,12 @@ +#ifndef RESAMPLE_H +#define RESAMPLE_H + +#include +#include + +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 -- cgit v1.2.3