hi, I developped a application which requested some real time functions. For example, it requests that a capture and write to disk occurs per 20ms. I set capture device's hardware parameters as: buffer time: 80ms, period time: 20ms, periods: 4, channles 1, rate 8000, access mode: RW_INTERLEAVED, and format S16 little endien. I think, the snd_pcm_readi() will return per 20ms, however, the function return two times per 40ms and the first return occurs after 39,xxx us and the second return occurs xxx us followed the first return. I use "gettimeofday()" function to test my application and aplay(alsa example) and get the same result. Thanks.
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel