mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
protocol-native: Allow clients to know at what index underrun occurred
This patch introduces some extra protocol information, so protocol version is bumped. This functionality is primarily needed to solve a long standing issue in alsa-plugins, which should ignore underruns if and only if it is obsolete, i e, if more data has been written to the pipe in the meantime (which will automatically end the underrun). BugLink: http://bugs.launchpad.net/bugs/805940 Signed-off-by: David Henningsson <david.henningsson@canonical.com>
This commit is contained in:
parent
00493a4ef0
commit
1893234063
6 changed files with 36 additions and 4 deletions
|
|
@ -169,6 +169,7 @@ struct pa_stream {
|
|||
/* playback */
|
||||
pa_memblock *write_memblock;
|
||||
void *write_data;
|
||||
int64_t latest_underrun_at_index;
|
||||
|
||||
/* recording */
|
||||
pa_memchunk peek_memchunk;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue