mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-25 06:59:52 -05:00
Big pile of dependant changes:
* Change pa_memblockq to carry silence memchunk instead of memblock and adapt all users
* Add new call pa_sink_input_get_silence() to get the suitable silence block for a sink input
* Implement monitoring sources properly by adding a delay queue to even out rewinds
* Remove pa_{sink|source}_ping() becaused unnecessary these days and not used
* Fix naming of various rewind related functions. Downstream is now _request_rewind(), upstream is _process_rewind()
* Fix volume adjustments for a single stream in pa_sink_render()
* Properly handle prebuf-style buffer underruns in pa_sink_input
* Don't allow rewinding to more than the last underrun
* Rework default buffering metrics selection for native protocol
* New functions pa_memblockq_prebuf_active(), pa_memblockq_silence()
* add option "mixer_reset=" to module-alsa-sink
* Other cleanups
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2283 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
7556ef5bfc
commit
62e7bc17c4
20 changed files with 950 additions and 531 deletions
|
|
@ -255,17 +255,13 @@ void pa_memblockq_sink_input_set_queue(pa_sink_input *i, pa_memblockq *q) {
|
|||
pa_memblockq_free(u->memblockq);
|
||||
|
||||
if ((u->memblockq = q)) {
|
||||
pa_memblock *silence;
|
||||
pa_memchunk silence;
|
||||
|
||||
pa_memblockq_set_prebuf(q, 0);
|
||||
|
||||
silence = pa_silence_memblock_new(
|
||||
i->sink->core->mempool,
|
||||
&i->sample_spec,
|
||||
i->thread_info.resampler ? pa_resampler_max_block_size(i->thread_info.resampler) : 0);
|
||||
|
||||
pa_memblockq_set_silence(q, silence);
|
||||
pa_memblock_unref(silence);
|
||||
pa_sink_input_get_silence(i, &silence);
|
||||
pa_memblockq_set_silence(q, &silence);
|
||||
pa_memblock_unref(silence.memblock);
|
||||
|
||||
pa_memblockq_willneed(q);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue