mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
alsa: compare the scaled value to decide on xrun
This commit is contained in:
parent
fea16cca14
commit
09b6ef41a8
1 changed files with 1 additions and 1 deletions
|
|
@ -281,7 +281,7 @@ snd_pcm_pipewire_process_record(snd_pcm_pipewire_t *pw, struct pw_buffer *b, snd
|
||||||
avail = SPA_MIN(maxsize, *hw_avail * bpf);
|
avail = SPA_MIN(maxsize, *hw_avail * bpf);
|
||||||
index = d[0].chunk->offset;
|
index = d[0].chunk->offset;
|
||||||
|
|
||||||
if (maxsize > *hw_avail)
|
if (avail < maxsize)
|
||||||
pw->xrun_detected = true;
|
pw->xrun_detected = true;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue