Skip to contentSkip to conversation

ALSA, select() question.

DISCUSSION William Estrada 1 participant 1 message Aug 29, 2008

lore
Share & tools
lore
#0 lore raw

Jaroslav,

I got you Email address from
http://www.mail-archive.com/[email protected]/msg09605.html.
<http://www.mail-archive.com/[email protected]/msg09605.html>
I am trying to write a C program that simply reads from a ALSA device and then writes back to it.
The program work with one major problem, there is a 4.1 second delay between the read and the write.
This delay is caused by the select() not returning at the right time. In you post you said to use:

Quoted 5 lines

Yes, but you have to create revents for snd_seq_poll_descriptors_revents() to get the right event then. Don't use values from select() directly.

Jaroslav

Do you have some sample code that I could look at so that I could fix
my problem?

Signature · 4 lines
William Estrada
[email protected]
Mt-Umunhum-Wireless.net ( http://Mt-Umunhum-Wireless.net )
Ymessenger: MrUmunhum