[alsa-devel] How can i solve the alsa underrun issue

Ren Brian ren.brian at gmail.com
Tue Jun 2 20:45:46 CEST 2009

> Hi,
>    I'm trying to develop one application using alsa lib. The application
> receives encoded sound data from a udp socket and decodes the data and write
> it to device. Is it possible to set the buffer length for alsa?. In my
> application i have a short array of size 6000 to keep the decoded data and
> decoded data length is 5120. What period size i should set. It always set
> 940 frames. When i used the OSS calls, it works fine. When i used the alsa
> lib it gives underrun. How can i resolve this?
> Thanks,
> -Renju

More information about the Alsa-devel mailing list