Skip to contentSkip to conversation

snd_pcm_drain() infinite loop

DISCUSSION GitHub issues - edited 1 participant 1 message Apr 11, 2020 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

alsa-project/alsa-lib issue #41 was edited from sylware:

In a non-blocking dmix-ed plugin pipeline (see below), playing audio from a 44100Hz source to a running 48000Hz hardware pcm, will go into an -EAGAIN infinite loop in snd_pcm_drain(). I did a bit of tracing and it seems snd_pcm_drain() will always return -EAGAIN because in pcm_dmix.c:snd_pcm_dmix_sync_ptr0, avail is never >= pcm->stop_threshold

Issue URL : https://github.com/alsa-project/alsa-lib/issues/41
Repository URL: https://github.com/alsa-project/alsa-lib