diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-03-15 15:19:40 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-03-15 15:19:40 +0000 |
commit | 12c01e942d23bd477e14b467e66352e6ce0557a9 (patch) | |
tree | 3231d52f87a1115744b5e4f4b61a0bccf04a57bc /src/pulsecore/resampler.h | |
parent | 347cfc356aa1c5073a5fc1d4355392759df13ab8 (diff) |
commit glitch-free work
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2122 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 82d01082..8534f5b5 100644 --- a/src/pulsecore/resampler.h +++ b/src/pulsecore/resampler.h @@ -46,6 +46,7 @@ typedef enum pa_resample_method { PA_RESAMPLER_FFMPEG, PA_RESAMPLER_AUTO, /* automatic select based on sample format */ PA_RESAMPLER_COPY, + PA_RESAMPLER_PEAKS, PA_RESAMPLER_MAX } pa_resample_method_t; @@ -69,6 +70,9 @@ void pa_resampler_free(pa_resampler *r); /* Returns the size of an input memory block which is required to return the specified amount of output data */ size_t pa_resampler_request(pa_resampler *r, size_t out_length); +/* Inverse of pa_resampler_request() */ +size_t pa_resampler_result(pa_resampler *r, size_t in_length); + /* Returns the maximum size of input blocks we can process without needing bounce buffers larger than the mempool tile size. */ size_t pa_resampler_max_block_size(pa_resampler *r); |