mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
alsa-sink: increase watermark when there is nothing to rewind
If we do not manage to rewind at all because there is nothing to rewind any more, it means the latency is too small, and we let audio escape our control. We should thus increase the watermark to fix this. Fixes #871 Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/287>
This commit is contained in:
parent
d15b31d751
commit
cb91d7a12e
1 changed files with 4 additions and 1 deletions
|
|
@ -1877,8 +1877,11 @@ static int process_rewind(struct userdata *u) {
|
|||
u->after_rewind = true;
|
||||
return 0;
|
||||
}
|
||||
} else
|
||||
} else {
|
||||
pa_log_debug("Mhmm, actually there is nothing to rewind.");
|
||||
if (u->use_tsched)
|
||||
increase_watermark(u);
|
||||
}
|
||||
|
||||
rewind_done:
|
||||
pa_sink_process_rewind(u->sink, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue