Query for snd_pcm_readi function.
Jaroslav Kysela
perex at perex.cz
Wed Sep 7 08:36:23 CEST 2022
On 06. 09. 22 15:28, Web X wrote:
> 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.
This question is handled in this github issue:
https://github.com/alsa-project/alsa-lib/issues/270
Jaroslav
--
Jaroslav Kysela <perex at perex.cz>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
More information about the Alsa-devel
mailing list