Skip to contentSkip to conversation

Select call with alsa

DISCUSSION Alex Lau 2 participants 2 messages Jan 7, 2004

lore
Share & tools
lore

Alex Lau

author
#0 lore raw

I had done some search on the internet about using select(2) with alsa and found the function snd_pcm_file_descriptor( *snd_pcm_handle_t).
However when I try to test it with a simple program, I got compliation error of fundefined reference. I also try to lokk it up in the library documentation buit from the source code but unable to find such function.

Can someone direct me to a suitable document about this function?

ps. I am using 1.0.0rc2 version

Thanks in advance.

Alex

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click

#1 lore raw
Quoted 8 lines · Alex Lau

I had done some search on the internet about using select(2) with alsa and found the function snd_pcm_file_descriptor( *snd_pcm_handle_t). However when I try to test it with a simple program, I got compliation error of fundefined reference. I also try to lokk it up in the library documentation buit from the source code but unable to find such function.

Can someone direct me to a suitable document about this function?

you seem to be looking for

snd_pcm_poll_descriptors_count (...) and
snd_pcm_poll_descriptors (...)

hth,

tim

ps: from my experience, poll(2) is a better replacement for select(2).

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click