[alsa-devel] [BUG] snd_pcm_drop() does not stop the PCM immediately

Martin Schreiber mse00000 at gmail.com
Wed Mar 14 15:59:07 CET 2018


Hi,
The documentation states:
"
This function stops the PCM immediately. The pending samples on the
buffer are ignored.
"
This does not work for the device "sysdefault" where a piece of the old
sound and the new sound overlap, see attached alsadrop1.c testprogram.
It is OK with the "default" device which is wired over Pulseaudio,
uncomment alsadrop1.c:55 in order to test.
The project is here:
https://gitlab.com/mseide-msegui/mseuniverse/tree/master/testcase/audio/c/alsadrop

Environment: openSUSE Leap 42.3, see attached alsa-info.tar.gz.

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alsa-info.tar.gz
Type: application/gzip
Size: 5975 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20180314/f39c53f7/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alsadrop1.c
Type: text/x-csrc
Size: 2434 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20180314/f39c53f7/attachment-0003.bin>


More information about the Alsa-devel mailing list