Acquring poll descriptors
Hi
Was just wondering if there is any particular reason to acquire a pcm's poll descriptor(s) (snd_pcm_poll_descriptors) before each poll, or can I simply do it after opening the pcm and be done with it? Can the associated poll fds, or even the number of fds change after a pcm has been opened?
Thanks
A
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
Quoted 6 lines · On Wed, 23 Jul 2003, [email protected] wrote:
Hi
Was just wondering if there is any particular reason to acquire a pcm's poll descriptor(s) (
snd_pcm_poll_descriptors) before each poll, or can I simply do it after opening the pcm and be done with it? Can the associated poll fds, or even the number of fds change after a pcm has been opened?
No, it's static. You can preallocate fds once.
Don't forget to call ....revents() to get proper poll events.
Jaroslav
-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0