diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-10-13 19:04:46 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-10-13 19:04:46 +0200 |
commit | af96e1ce92c751f92cdb862985d1abe7362a6e59 (patch) | |
tree | becd9199f426f2b53cca4f40eba443e8a6e94196 /resample.h | |
parent | 18399d8f41e0154af266f43fd4a05420cb335aa7 (diff) |
Resample files when transcoding to mp3 using libsamplerate.
Diffstat (limited to 'resample.h')
-rw-r--r-- | resample.h | 12 |
1 files changed, 12 insertions, 0 deletions
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 <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 |