diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-08-13 02:17:24 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-08-13 02:17:24 +0200 |
commit | 5ee4069e9e68f81a71d208bb720d0c6bc6112fdc (patch) | |
tree | ee2244ea18f790632ab25e54826e0c9de7a0f84e /src/pulsecore/source-output.c | |
parent | 9a95fe49c848d2711dcdcf4c407e626e41e4657f (diff) |
core: add functions to query max_rewind/max_request values from streams
Diffstat (limited to 'src/pulsecore/source-output.c')
-rw-r--r-- | src/pulsecore/source-output.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/pulsecore/source-output.c b/src/pulsecore/source-output.c index fdc00e15..5d79dbbb 100644 --- a/src/pulsecore/source-output.c +++ b/src/pulsecore/source-output.c @@ -537,6 +537,14 @@ void pa_source_output_process_rewind(pa_source_output *o, size_t nbytes /* in so } /* Called from thread context */ +size_t pa_source_output_get_max_rewind(pa_source_output *o) { + pa_source_output_assert_ref(o); + pa_source_output_assert_io_context(o); + + return o->thread_info.resampler ? pa_resampler_request(o->thread_info.resampler, o->source->thread_info.max_rewind) : o->source->thread_info.max_rewind; +} + +/* Called from thread context */ void pa_source_output_update_max_rewind(pa_source_output *o, size_t nbytes /* in the source's sample spec */) { pa_source_output_assert_ref(o); pa_source_output_assert_io_context(o); |