aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm_resample.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pcm_resample.c')
-rw-r--r--src/pcm_resample.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/pcm_resample.c b/src/pcm_resample.c
index 892d1c633..4bc057a7e 100644
--- a/src/pcm_resample.c
+++ b/src/pcm_resample.c
@@ -76,6 +76,16 @@ void pcm_resample_deinit(struct pcm_resample_state *state)
pcm_resample_fallback_deinit(state);
}
+void
+pcm_resample_reset(struct pcm_resample_state *state)
+{
+#ifdef HAVE_LIBSAMPLERATE
+ pcm_resample_lsr_reset(state);
+#else
+ (void)state;
+#endif
+}
+
const float *
pcm_resample_float(struct pcm_resample_state *state,
unsigned channels,