[alsa-devel] How can i solve the alsa underrun issue
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
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
participants (1)
-
Ren Brian