mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-26 07:00:07 -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
|
|
@ -64,7 +64,7 @@ typedef struct pa_memblockq pa_memblockq;
|
|||
|
||||
- maxrewind: how many bytes of history to keep in the queue
|
||||
|
||||
- silence: return this memblock when reading unitialized data
|
||||
- silence: return this memchunk when reading unitialized data
|
||||
*/
|
||||
pa_memblockq* pa_memblockq_new(
|
||||
int64_t idx,
|
||||
|
|
@ -74,7 +74,7 @@ pa_memblockq* pa_memblockq_new(
|
|||
size_t prebuf,
|
||||
size_t minreq,
|
||||
size_t maxrewind,
|
||||
pa_memblock *silence);
|
||||
pa_memchunk *silence);
|
||||
|
||||
void pa_memblockq_free(pa_memblockq*bq);
|
||||
|
||||
|
|
@ -152,7 +152,7 @@ void pa_memblockq_set_tlength(pa_memblockq *memblockq, size_t tlength); /* might
|
|||
void pa_memblockq_set_prebuf(pa_memblockq *memblockq, size_t prebuf); /* might modify minreq, too */
|
||||
void pa_memblockq_set_minreq(pa_memblockq *memblockq, size_t minreq);
|
||||
void pa_memblockq_set_maxrewind(pa_memblockq *memblockq, size_t rewind); /* Set the maximum history size */
|
||||
void pa_memblockq_set_silence(pa_memblockq *memblockq, pa_memblock *silence);
|
||||
void pa_memblockq_set_silence(pa_memblockq *memblockq, pa_memchunk *silence);
|
||||
|
||||
/* Call pa_memchunk_willneed() for every chunk in the queue from the current read pointer to the end */
|
||||
void pa_memblockq_willneed(pa_memblockq *bq);
|
||||
|
|
@ -162,4 +162,9 @@ void pa_memblockq_willneed(pa_memblockq *bq);
|
|||
* data for the future nor data in the backlog. */
|
||||
pa_bool_t pa_memblockq_is_empty(pa_memblockq *bq);
|
||||
|
||||
void pa_memblockq_silence(pa_memblockq *bq);
|
||||
|
||||
/* Check whether we currently are in prebuf state */
|
||||
pa_bool_t pa_memblockq_prebuf_active(pa_memblockq *bq);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue