Clemens Ladisch wrote: > Agata Ma wrote: >> So, my question is: does exist an ALSA function to count the PCM >> frames captured and moved to buffer? > > The function snd_pcm_avail_update() returns how many frames are > available in the device's buffer. > > The function snd_pcm_readi() returns how many frames it has copied to > your buffer. > > > HTH > Clemens > > Hi Clemens, Thanks for your suggestion, I have wrote a simple C code using snd_pcm_readi() and it work..I can count the frames.. Now, a new "problem" arise...but I'm going to open a new thread to be more precise. Thanks Agata __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-devel