From 2a442134307ed46af014ecc8f1ec2f8e6acf544d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 23 Dec 2007 20:15:03 +0000 Subject: add API for resetting allocated resamplers git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2088 fefdeb5f-60dc-0310-8127-8f9354f1896f --- src/pulsecore/resampler.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/pulsecore/resampler.h') diff --git a/src/pulsecore/resampler.h b/src/pulsecore/resampler.h index 778c738d..82d01082 100644 --- a/src/pulsecore/resampler.h +++ b/src/pulsecore/resampler.h @@ -81,6 +81,9 @@ void pa_resampler_set_input_rate(pa_resampler *r, uint32_t rate); /* Change the output rate of the resampler object */ void pa_resampler_set_output_rate(pa_resampler *r, uint32_t rate); +/* Reinitialize state of the resampler, possibly due to seeking or other discontinuities */ +void pa_resampler_reset(pa_resampler *r); + /* Return the resampling method of the resampler object */ pa_resample_method_t pa_resampler_get_method(pa_resampler *r); @@ -93,4 +96,5 @@ const char *pa_resample_method_to_string(pa_resample_method_t m); /* Return 1 when the specified resampling method is supported */ int pa_resample_method_supported(pa_resample_method_t m); + #endif -- cgit