diff options
author | Lennart Poettering <lennart@poettering.net> | 2007-12-23 20:15:03 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2007-12-23 20:15:03 +0000 |
commit | 2a442134307ed46af014ecc8f1ec2f8e6acf544d (patch) | |
tree | 2f9c9cea59b3f598549a7f978328ab1372e86345 /src/pulsecore/resampler.h | |
parent | 7f65e79e73c6e7cf7578f1a0d7d3d5c7cc07eff8 (diff) |
add API for resetting allocated resamplers
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2088 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulsecore/resampler.h')
-rw-r--r-- | src/pulsecore/resampler.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 |