Query for snd_pcm_readi function.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux