[alsa-devel] Polling issues with the PCM multi plugin

Devin Anderson surfacepatterns at gmail.com
Fri Dec 14 07:48:36 CET 2012

On Thu, Dec 13, 2012 at 7:43 PM, Devin Anderson
<surfacepatterns at gmail.com> wrote:

> I have an idea that I'd like to explore, but it's dependent on the
> idea that `snd_pcm_poll_descriptors()` needs to be called before every
> `poll()` call, and I'm not sure if that's a reasonable expectation.
> Is `snd_pcm_poll_descriptors()` a function you can call once, and then
> depend on working through multiple `poll()` calls, or is it required
> that `snd_pcm_poll_descriptors()` be called for every call to refresh
> the descriptors and the events they should be polled for?

Scratch that.  I just read pcm.c in the tests folder in alsa-lib,
which calls `snd_pcm_poll_descriptors()` only once, and then polls
thereafter.  Oh well.

Devin Anderson
surfacepatterns (at) gmail (dot) com

blog - http://surfacepatterns.blogspot.com/
psinsights - http://psinsights.googlecode.com/
synthclone - http://synthclone.googlecode.com/

More information about the Alsa-devel mailing list