How to count PCM frames captured?
Quoted 2 lines · Clemens Ladisch
Quoted 1 line · Agata Ma
So, my question is: does exist an ALSA function to
count the PCM
Quoted 3 lines
Quoted 1 line
frames captured and moved to buffer?
The function
snd_pcm_avail_update()returns how many
frames are
Quoted 3 lines
available in the device's buffer.
The function
snd_pcm_readi()returns how many frames
it has copied to
Quoted 7 lines
your buffer.
HTH
Clemens
Hi Clemens,
Thanks for your suggestion, I have wrote a simple C code usingsnd_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