我通过snd_pcm_poll_descriptors填充的struct pollfd结构的fd字段来获取alsa设备fd ...但是,当涉及到epoll_wait产生的“ demangle”事件时,snd_pcm_poll_descriptors_revents却无济于事,因为仅struct pollfd适合它的参数。
When you get an epoll notification about a file descriptor, set the corresponding bit(s) in the revents
field of the original struct pollfd
. Then you can call snd_pcm_poll_descriptors()
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.