Skip to contentSkip to conversation

how to get underlying file descriptors

Question GitHub issues - opened 1 participant 1 message Jun 3, 2024 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

alsa-project/alsa-lib issue #399 was opened from pfeatherstone:

I would like to use Alsa with the asio c++ library. I think all I need is the underlying file descriptor(s) for the device which I can then pass to Asio for polling and do all my asyncio. At the moment you're forced to use pollfd using snd_pcm_poll_descriptors(). Can I just read the fds or are there subtleties? Cheers

Issue URL : https://github.com/alsa-project/alsa-lib/issues/399
Repository URL: https://github.com/alsa-project/alsa-lib