Query for snd_pcm_readi function.
Web X
webx93 at gmail.com
Tue Sep 6 15:28:09 CEST 2022
Hi,
I am using alsa open source library for my project to read and write audio
data.
For that I am using snd_pcm_readi function to read audio data. I am able to
read audio data.
But issue is that sometimes it will take so much time to read data.(200-230
msec).
Normally this function executed in 1-3 ms that is normal case, but after
every 2-4 frames it is taking 200-300 msec.
So this is affecting my whole application process.
I have also try to set this call as nonblock with the help of
snd_pcm_nonblock function. With that I have observed some improvements but
still after 2-3 frames it is taking 100msec time to get a data.
Please do needful as soon as possible.
Let me know if you want more details.
More information about the Alsa-devel
mailing list