why playing sound on embedded produce ALSA underruns

Issue

This Content is from Stack Overflow. Question asked by SHERIF OMRAN

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.



Solution

This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?