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:
David Henningsson 2015-03-24 10:29:18 +01:00
parent defc2b702b
commit 7fb531d936
4 changed files with 22 additions and 5 deletions

View file

@ -1106,9 +1106,9 @@ void pa_sink_input_process_rewind(pa_sink_input *i, size_t nbytes /* in sink sam
if (i->thread_info.rewrite_flush)
pa_memblockq_silence(i->thread_info.render_memblockq);
/* And reset the resampler */
/* And rewind the resampler */
if (i->thread_info.resampler)
pa_resampler_reset(i->thread_info.resampler);
pa_resampler_rewind(i->thread_info.resampler, amount);
}
}