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

Martin Schreiber mse00000 at gmail.com
Wed Mar 14 17:39:46 CET 2018


On 03/14/2018 05:16 PM, Takashi Iwai wrote:
>> Does snd_pcm_close() "scratching off the existing data from the mixed
>> buffer"?
> 
> It shouldn't.  There is no corresponding code in the dmix close path
> as far as I read again.  So, if it really does anything better, it's
> somewhere rather in the ALSA timer handling, I suppose.
> 
It does better, see attached alsadrop2.c.
Now the question is why? And could it be implemented in snd_pcm_drop() too?

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alsadrop2.c
Type: text/x-csrc
Size: 2640 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20180314/549b7efe/attachment.bin>


More information about the Alsa-devel mailing list