why playing sound on embedded produce ALSA underruns

Viewed 11

i have an embedded device ARM 64 bit, and developing a GUI program with 1 button, by clicking this button a tone is played. The implementation is correct, when playing on PC, it is possible to click many times on the button.

When playing on target embedded device, i get ALSA Underruns, and the tone duration is not completely played, i mean sometimes i listen to 100% of the beep, and some times to 20% of the beep. The same happens when playing using aplay.

By checking the ALSA buffer, it is 128kb on the target while being 64kb on PC.

I currently used kernel and OS is debian 5.10.17.

0 Answers
Related