aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm_convert.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pcm_convert.c')
-rw-r--r--src/pcm_convert.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pcm_convert.c b/src/pcm_convert.c
index daf1cd234..a3b3bb446 100644
--- a/src/pcm_convert.c
+++ b/src/pcm_convert.c
@@ -57,6 +57,12 @@ void pcm_convert_deinit(struct pcm_convert_state *state)
pcm_buffer_deinit(&state->byteswap_buffer);
}
+void
+pcm_convert_reset(struct pcm_convert_state *state)
+{
+ pcm_resample_reset(&state->resample);
+}
+
static const void *
pcm_convert_channels(struct pcm_buffer *buffer, enum sample_format format,
uint8_t dest_channels,