From 3b565b5f972ad65ab3e498c29eaf4f825eacece4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 1 Mar 2012 00:59:53 +0100 Subject: pcm_convert: add method _reset() Resets the libsamplerate state. Not being used yet. --- src/pcm_convert.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/pcm_convert.h') diff --git a/src/pcm_convert.h b/src/pcm_convert.h index 6dbd7541b..41a9f9380 100644 --- a/src/pcm_convert.h +++ b/src/pcm_convert.h @@ -66,6 +66,13 @@ void pcm_convert_init(struct pcm_convert_state *state); */ void pcm_convert_deinit(struct pcm_convert_state *state); +/** + * Reset the pcm_convert_state object. Use this at the boundary + * between two distinct songs and each time the format changes. + */ +void +pcm_convert_reset(struct pcm_convert_state *state); + /** * Converts PCM data between two audio formats. * -- cgit v1.2.3