>I just came to a pseudo-epiphany, but I can't test it atm. Do I poll >on the fd , but set pfd.events = POLLIN | POLLERR?
there now, that wasn't too hard, was it? :)) the rest of the code should look identical. note that audioengine (and now JACK) is technically in error because it only polls one stream. it should really poll them both, and it should discover that the second poll returns immediately (if they were running in sync). however, the snd_pcm_avail_update() sort of takes of that for us; we use the poll() to just wake us up with a certain periodicity, and then we move on from there to use whatever is actually available on both streams (note that in audioengine, because both streams are run precisely in sync, we use the minimum available from both streams; you presumably won't have this problem, but OTOH, if you run the streams independently, you also don't have sample sync guarantees either. tut. tut. tut :) --p _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel