> let me reiterate: you cannot safely call functions in alsa-lib from
> the SIGIO handler, because alsa lib makes repeated calls to functions
> that are not async safe. i also do not know the extent to which linux
> POSIX compliance ensures that even those functions that are supposed
> to async safe actually are.

Well, it doesn't seem to be completely okay... I occasionally get the error
"Initial write error: broken pipe" and it just shuts down (well, it actually
just hangs because the incallback mutex is never cleared - I need a timeout
in there) the callback if things get too much for the poor thing to take.  I
did also notice when running the pcm example in async mode, if I started
moving scrollbars and the like in my KDE environment, continuous glitches
came into the audio.

Even if I decide not to use async mode, I'm going to have to redo my code a
bit more to work properly under Linux... while it was fine under Win9x-style
multitasking, it's now dropping out all over the place...

- Tom.


_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to