Followup to "snd_pcm_recover underrun"
-
Re: snd_pcm_recover underrun @mahoneyt944
I assume the Rpi3 is too busy and the buffer can not be filled on time before playback starts.
The audio device setup is done here: https://github.com/RetroPie/EmulationStation/blob/b513c19c5bcaf24c7a292fba9ffa8811937ea0fe/es-core/src/AudioManager.cpp#L91-L99
And as the spec [1] says, it buffer underflows may occour if the system is too busy.
FWIW, when running EmulationStation in valgrind the message reliably shows up when navigating in a Gamelist (carbon theme). In a release build on a RPI4 it does not show up.
Some mitigation ideas:
Increasing the samples count or decreasing the sample rate could be a mitigation to this message (needs recompile of EmulationStation). Or using a faster SD card on a Rpi3, if the Rpi3 has to wait on the SD card. -
@lolonois I have a rpi3b+ which runs 24/7 in a arcade cabinet. This issue is found when I return to the cabinet after a few days of it running and go to launch a game. The error shows right before the game launches. Carbon theme using a slideshow screensaver. No audio in use while it's idling between uses
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.