On Friday 16 March 2018 23:31:31 fredvs wrote:
> Hello Martin.
>
> On my system, in alsadrop2.c with usleep(700000) in line 124 ---> crash if
> using "sysdefault" alsa device.
>
> With usleep(1000000) or more ---> OK, no crash and my ears do not feel any
> difference with alsadrop2 compiled with device = "sysdefault" vs "default"
> (or missed something).
>
Sure, because then the sound snippets are not longer than the play time, -> 
drop has no effect.

> Included compiled sysdefault vs default of alsadrop2.c.
> alsadrop.zip
> <http://mseide-msegui-talk.13964.n8.nabble.com/file/t2/alsadrop.zip>
>
> Huh, about "put a sleep(10) in snd_pcm_dmix_close()"...
> Sorry, I do not understand...
>
Me neither because I don't know anything about Alsa internal workings. But you 
are an enthusiastic Alsa user from the beginning AFAIK?

> Are you talking about the bug of the crash or about the overlapping-sound
> at begin?
>
There should be no overlapping sound by snd_pcm_drop(). snd_pcm_close() does 
stop the sound immediately it seems. The task is to find out how 
snd_pcm_close() stops the sound immediately and to improve snd_pcm_drop() so 
it does also stop the sound immediately but does not crash a running write 
operation in another thread.

Martin

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to