RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Followup to "snd_pcm_recover underrun"

    Scheduled Pinned Locked Moved Help and Support
    sndpcmrecover
    2 Posts 2 Posters 126 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • LolonoisL
      Lolonois
      last edited by

      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.

      [1] https://wiki.libsdl.org/SDL_OpenAudioDevice

      M 1 Reply Last reply Reply Quote 0
      • M
        mahoneyt944 @Lolonois
        last edited by

        @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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        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.