Hello, int snd_pcm_poll_descriptors_count(snd_pcm_t *pcm) { assert(pcm); return 1; }
I don't understand: why the abstraction for the number of poll descriptors when it is always 1? What could change in the future to require more poll descriptors per stream? Also, how should programs interpret multiple poll descriptors: if the poll succeeds on some descriptors but not others, does this mean the stream is only "partially" ready? Also, is snd_pcm_poll_descriptors_revents() understood to return the events that have triggered on just *one* poll descriptor or on *all*? In other words, are you ANDing bitmasks or ORing them? Right now the semantics are impossible to deduce because the function just returns the revents verbatim since there is only one poll descriptor. Josh ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel