mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
resampler: Make some basic functions for rewinding
The resampler framework just forwards the request to the lfe filter. There are no resampler impl that can rewind yet, so just reset the resampler impl instead of properly rewinding yet. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
This commit is contained in:
parent
defc2b702b
commit
7fb531d936
4 changed files with 22 additions and 5 deletions
|
|
@ -851,7 +851,7 @@ void pa_source_output_process_rewind(pa_source_output *o, size_t nbytes /* in so
|
|||
o->process_rewind(o, nbytes);
|
||||
|
||||
if (o->thread_info.resampler)
|
||||
pa_resampler_reset(o->thread_info.resampler);
|
||||
pa_resampler_rewind(o->thread_info.resampler, nbytes);
|
||||
|
||||
} else
|
||||
pa_memblockq_rewind(o->thread_info.delay_memblockq, nbytes);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue