14 Mar
2018
14 Mar
'18
5:39 p.m.
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