Fons Adriaensen wrote: > On Wed, Nov 08, 2006 at 02:24:30PM +0100, Fons Adriaensen wrote: > > Is snd_pcm_poll_descriptors_revents() more than an > > accessor ? If it is, the name is a quite misleading. > > To answer my own question, it seems that it *is* more > than an accessor. > > The docs leave one thing unclear. Does this call require > an array of unsigned short int (one per pollfd), or are > events from all pollfds combined into one revents value?
It returns one revents value for the PCM device. > In that case, how can one test if *all* pollfd for a given > pcm are ready ? You cannot. The state of the file descriptors is not necessarily related to the state of the PCM device (which is why this function exists). Regards, Clemens