diff options
Diffstat (limited to '')
-rw-r--r-- | src/pcm_resample_libsamplerate.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pcm_resample_libsamplerate.c b/src/pcm_resample_libsamplerate.c index c1b1760a9..f957e5155 100644 --- a/src/pcm_resample_libsamplerate.c +++ b/src/pcm_resample_libsamplerate.c @@ -104,6 +104,13 @@ pcm_resample_lsr_deinit(struct pcm_resample_state *state) pcm_buffer_deinit(&state->buffer); } +void +pcm_resample_lsr_reset(struct pcm_resample_state *state) +{ + if (state->state != NULL) + src_reset(state->state); +} + static bool pcm_resample_set(struct pcm_resample_state *state, unsigned channels, unsigned src_rate, unsigned dest_rate, |