Skip to contentSkip to conversation

DOC or BUG: plugins dsnoop, dmix and dshare change mode parameter of snd_pcm_open_slave

DISCUSSION GitHub issues - opened 1 participant 1 message Oct 26, 2020 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

alsa-project/alsa-lib issue #92 was opened from RonaldAJ:

Using the dsnoop plugin sets the mode to non-blocking in alsa-lib/src/pcm/pcm_dsnoop.c:

ret = snd_pcm_open_slave(&spcm, root, sconf, stream,
mode | SND_PCM_NONBLOCK | SND_PCM_APPEND, NULL);
Judging from the code the same applies for dmix, dshare.

It took me a considerable amount of time to figure this out using the source code. So it would be nice if this behaviour where documented.

Personally I would prefer the code to throw an error message, when using blocking mode with these plugins. But I don't know how that ties in with the overall design.

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