mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
core: add functions to query max_rewind/max_request values from streams
This commit is contained in:
parent
9a95fe49c8
commit
5ee4069e9e
4 changed files with 33 additions and 0 deletions
|
|
@ -536,6 +536,14 @@ void pa_source_output_process_rewind(pa_source_output *o, size_t nbytes /* in so
|
|||
pa_memblockq_rewind(o->thread_info.delay_memblockq, nbytes);
|
||||
}
|
||||
|
||||
/* 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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue