snd_pcm_drain() infinite loop
GitHub issues - edited
github at alsa-project.org
Sun Apr 12 01:55:03 CEST 2020
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
More information about the Alsa-devel
mailing list