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

    Pi4 - 4.7.1x after recent update audio little glitch/struttering or miss some frame on some libretro core... it's fixable ?

    Scheduled Pinned Locked Moved Help and Support
    update issueaudio issuesaudio problemsretropie 4.7.13
    43 Posts 5 Posters 3.3k 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.
    • dankcushionsD
      dankcushions Global Moderator @DjDiabolik
      last edited by dankcushions

      @djdiabolik said in Pi4 - 4.7.1x after recent update audio little glitch/struttering or miss some frame on some libretro core... it's fixable ?:

      @dankcushions lol by a google result i had noticed the first thread you linked.

      I have watched closely the three video and for absurd i don't see any problems :)
      For example i have right now rewatch the "Stutter1" video... it's only about 9 seconds but where's the issue/trouble ?

      it’s probably difficult to catch on video and street fighter probably too busy to see it, but it looks like horrible tearing and stutter and happens occasionally rather than constantly. try the fix there to see if it makes a difference?

      I have a OT question... instead a using a camera put in front of my tv. It's possible for example catch the video stream from my pi4 for example registering a video on my pendrive (how i stored all my roms) ?
      or anyway it is advisable to use the camera for a do a complete catch of my entire retrogame postation :)

      you’re overcomplicating it. just use a phone camera/camera to record it when it happens, and upload to youtube or wherever.

      Meanwhile, I also tried to make a request thread in that of reddit..... an user as suggest to me to check if i have the eeprom firmware updated but i thinks yes because i thinks this is updated when you make updates from retropie-setup and you choose to update OS componets right ?

      yes.

      DjDiabolikD 1 Reply Last reply Reply Quote 0
      • DjDiabolikD
        DjDiabolik @dankcushions
        last edited by DjDiabolik

        @dankcushions and @nemo93 (i cited both only because you have already partecipad in thread).

        I have right now put my Android Smartphone near my TV.... you can see (partially) my Retrogames setup whit my Pi4 (remember 4GB kit in a Labist KIT buyed from amazon).

        You can see i have played the same games used as example for verbose log... it's "CATRAP (USA).zip" using current (and problably latest) version of lr-gambatte.

        If you can watch entire video :) After i have set my phone near my TV you can listen, clearly the audio of games..... you can see i'm stay to solve a level and at about 3minutes and 10 seconds you can clearly listen the issue i have descripted here.
        You can clearly listen a very little interruption on audio tracks... and there's append about every 3 or 4 minutes. Sometime i can listen a single and little interruption and other time two or three different interruption consecutive.

        As I said at the beginning ... I had never noticed such problems before a few weeks ago issues that popped up right after the update.
        This last update problably it's not the main cause of the problem...... anyway now i have set audio as "alsathread" also on both retroarch.cfg (on all and on gb folder) and on the same page how i have set alsathread i see a value setted at 64 which should be relative to the audio buffer. It's the correct value 64 ??
        I have look this value for any other and for all i have set this value........ it's ok ?

        And.... finally.... youtube as ended to elaborate my video example...... i can share whit you.. here we go :)

        EDIT number 1
        I will try to add the exact timeline when it's present the issue... otherwise at about 3:11 of video.

        dankcushionsD 1 Reply Last reply Reply Quote 0
        • dankcushionsD
          dankcushions Global Moderator @DjDiabolik
          last edited by

          @djdiabolik
          it's not a great example as gameboy has a very simple sound chip that has limited channels and so on. also we can barely see the screen and it isn't scrolling to indicate if this is a framedrop and so on. does this happen with every libretro core? can you not use a faster, scrolling game so it's more obvious?

          if only GB, can you try with lr-mgba (also supports GB games)? it's a developed core. lr-gambette seems abandoned.

          all that said, this doesn't seem like any of the known issues i talked about before. so disregard those.

          finally:

          This last update problably it's not the main cause of the problem...... anyway now i have set audio as "alsathread" also on both retroarch.cfg (on all and on gb folder) and on the same page how i have set alsathread i see a value setted at 64 which should be relative to the audio buffer. It's the correct value 64 ??

          did you not reset your retroarch.cfgs as you were instructed to earlier? in which case you only need to set it once in /all/ and you don't (I think) see any audio buffer settings. please show us the files after you've done.

          DjDiabolikD 1 Reply Last reply Reply Quote 0
          • DjDiabolikD
            DjDiabolik @dankcushions
            last edited by DjDiabolik

            @dankcushions said in Pi4 - 4.7.1x after recent update audio little glitch/struttering or miss some frame on some libretro core... it's fixable ?:

            @djdiabolik
            it's not a great example as gameboy has a very simple sound chip that has limited channels and so on. also we can barely see the screen and it isn't scrolling to indicate if this is a framedrop and so on. does this happen with every libretro core? can you not use a faster, scrolling game so it's more obvious?

            if only GB, can you try with lr-mgba (also supports GB games)? it's a developed core. lr-gambette seems abandoned.

            all that said, this doesn't seem like any of the known issues i talked about before. so disregard those.

            finally:

            This last update problably it's not the main cause of the problem...... anyway now i have set audio as "alsathread" also on both retroarch.cfg (on all and on gb folder) and on the same page how i have set alsathread i see a value setted at 64 which should be relative to the audio buffer. It's the correct value 64 ??

            did you not reset your retroarch.cfgs as you were instructed to earlier? in which case you only need to set it once in /all/ and you don't (I think) see any audio buffer settings. please show us the files after you've done.

            Lol... for try to center the TV screen i need to put my phone in a higher position :). Somethings like a stand or selfie stick or similar. I don't have it or i need to call my mother to maintain my phone on your hands and register another video :)

            Otherwise i can try to change.... if i remember i can change the main emulator for GB system from menù A when i launch a roms exactly ? After i have made some test i can reselect lr-gamebatte :)
            I never changed the GB default system because apparently lr-gamebatte it's selected by default ?

            About reset my retroarch.cfg on opt/config/all and all core i have some question to do:
            How i can do it ? For example... for "all" folder i can use retroarch.cfg.rp-dist.... and for all my current system ?
            There's a download for all default retroarch.cfg ? Because currently, as we have seen I have all those non-standard cfg :)

            Thanks in advance.......

            dankcushionsD 1 Reply Last reply Reply Quote 0
            • dankcushionsD
              dankcushions Global Moderator @DjDiabolik
              last edited by

              @djdiabolik

              Lol... for try to center the TV screen i need to put my phone in a higher position :). Somethings like a stand or selfie stick or similar. I don't have it or i need to call my mother to maintain my phone on your hands and register another video :)

              or just have a game with an attract mode (sonic 1, etc) and you can hold your own phone.

              Otherwise i can try to change.... if i remember i can change the main emulator for GB system from menù A when i launch a roms exactly

              https://retropie.org.uk/docs/Runcommand/#runcommand-launch-menu option 1 - select default emulator for (in your case, gb)

              About reset my retroarch.cfg on opt/config/all and all core i have some question to do:

              I explained how here:
              https://retropie.org.uk/forum/topic/30747/pi4-4-7-1x-after-recent-update-audio-little-glitch-struttering-or-miss-some-frame-on-some-libretro-core-it-s-fixable/10?_=1623767907943

              DjDiabolikD 1 Reply Last reply Reply Quote 0
              • DjDiabolikD
                DjDiabolik @dankcushions
                last edited by

                @dankcushions said in Pi4 - 4.7.1x after recent update audio little glitch/struttering or miss some frame on some libretro core... it's fixable ?:

                I explained how here:
                https://retropie.org.uk/forum/topic/30747/pi4-4-7-1x-after-recent-update-audio-little-glitch-struttering-or-miss-some-frame-on-some-libretro-core-it-s-fixable/10?_=1623767907943

                Yes I had read this.... so i have to re-install all my system core to obtain the retroarch.cfg.rp-dist for all system ?
                If i understand correctly from retropie-setup i have to reinstall retroarch and all system core for obtain the default rp-dist files ?

                dankcushionsD 1 Reply Last reply Reply Quote 0
                • dankcushionsD
                  dankcushions Global Moderator @DjDiabolik
                  last edited by

                  @djdiabolik you’ve only shown me configs for gb and retroarch so i only instructed how to reset for the configs for the same. i don’t know how to explain it any clearer.

                  DjDiabolikD 1 Reply Last reply Reply Quote 0
                  • DjDiabolikD
                    DjDiabolik @dankcushions
                    last edited by DjDiabolik

                    @dankcushions said in Pi4 - 4.7.1x after recent update audio little glitch/struttering or miss some frame on some libretro core... it's fixable ?:

                    @djdiabolik you’ve only shown me configs for gb and retroarch so i only instructed how to reset for the configs for the same. i don’t know how to explain it any clearer.

                    Yes exactly.... but if right now i want to extend the same solution for all other my system how you suggest to do ?

                    Anyway if lr-gambatte it's this here:
                    https://github.com/libretro/gambatte-libretro

                    Has last commit 5 days ago..... how it's possible this is abandoned ?

                    EDIT
                    Meinwhile i have try to play CATRAP after setted lr-mgba........ whit this different core apparently i can't restore my lr-gambatte savestate. It's not multicompatible the savestate from different core ?

                    EDiT 2nd Part
                    After read some other thread/blog found by google i have problably found one things.
                    The savestate made by lr-gambatte it's not compatible whit the lr-mgba. At this point it could be an idea to storage/usage the savestate on 2 different paths depending on the GB core I'm going to use.
                    This will be another thing to do in the future in my setup.

                    Meinwhile whit lr-gambatte i have tryed to reset both retroarch.cfg....... i do this:

                    1. I backup the current retroarch.cfg from "all" and from "gb" folder (the current non stardard).
                    2. From retropie-setup i have re-install the both componet....retroarch and lr-gambatte from the respective sections. This made me possibility to obtain the both retroarch.cfg.rp-dist
                    3. After that i have delete the both retroarch.cfg from "all" and "gb" folder.
                    4. Rename both retroarch.cfg.rp-dist to retroarch.cfg on "all" and "gb"

                    At this point... i thinks for GB i have reset both configuration to default.
                    Using lr-gambatte try to launch same game.. catrap...... same issue whit audio it's persistent.

                    At this point after doing this test and checking that resetting to default the both retroarch.cfg does not lead to solutions i have reput my usually non-standard configuration.
                    honestly if it's not the bad configuration that's causing this little trouble whit audio it's only need to test the same games whit lr-mgba but i need to found a workaround for use/load the old savestate maded previously when i use lr-gambatte (because i have a lot of games where i have saved game progress :)).

                    Do you have some suggestion ?

                    EDIT 3rd part
                    The other test need to do it's try to set the "vc4-kms-v3d-pi4,noaudio" on config.txt.
                    But i could be wrong but i don't seem to have screen tearing issues :)

                    dankcushionsD 1 Reply Last reply Reply Quote 0
                    • dankcushionsD
                      dankcushions Global Moderator @DjDiabolik
                      last edited by

                      @djdiabolik said in Pi4 - 4.7.1x after recent update audio little glitch/struttering or miss some frame on some libretro core... it's fixable ?:

                      @dankcushions said in Pi4 - 4.7.1x after recent update audio little glitch/struttering or miss some frame on some libretro core... it's fixable ?:

                      @djdiabolik you’ve only shown me configs for gb and retroarch so i only instructed how to reset for the configs for the same. i don’t know how to explain it any clearer.

                      Yes exactly.... but if right now i want to extend the same solution for all other my system how you suggest to do ?

                      yes, to reset other lr- emulators you repeat the process for their config folders.

                      Anyway if lr-gambatte it's this here:
                      https://github.com/libretro/gambatte-libretro

                      Has last commit 5 days ago..... how it's possible this is abandoned ?

                      because it’s a fork of https://sourceforge.net/projects/gambatte/ which hasn’t been updated since 2019. the changes since then are maintenance, really, not to do with emulator function. can’t you just test in lr-mgba to see if it fixes the issue?!

                      EDIT
                      Meinwhile i have try to play CATRAP after setted lr-mgba........ whit this different core apparently i can't restore my lr-gambatte savestate. It's not multicompatible the savestate from different core ?

                      EDiT 2nd Part
                      After read some other thread/blog found by google i have problably found one things.
                      The savestate made by lr-gambatte it's not compatible whit the lr-mgba. At this point it could be an idea to storage/usage the savestate on 2 different paths depending on the GB core I'm going to use.
                      This will be another thing to do in the future in my setup.

                      but does it have the issue?!

                      Meinwhile whit lr-gambatte i have tryed to reset both retroarch.cfg....... i do this:

                      1. I backup the current retroarch.cfg from "all" and from "gb" folder (the current non stardard).
                      2. From retropie-setup i have re-install the both componet....retroarch and lr-gambatte from the respective sections. This made me possibility to obtain the both retroarch.cfg.rp-dist
                      3. After that i have delete the both retroarch.cfg from "all" and "gb" folder.
                      4. Rename both retroarch.cfg.rp-dist to retroarch.cfg on "all" and "gb"

                      At this point... i thinks for GB i have reset both configuration to default.
                      Using lr-gambatte try to launch same game.. catrap...... same issue whit audio it's persistent.

                      At this point after doing this test and checking that resetting to default the both retroarch.cfg does not lead to solutions i have reput my usually non-standard configuration.

                      ok, but it’s good it’s fixed. we cannot diagnose easily by staring at a massive customised configuration file.

                      honestly if it's not the bad configuration that's causing this little trouble whit audio it's only need to test the same games whit lr-mgba but i need to found a workaround for use/load the old savestate maded previously when i use lr-gambatte (because i have a lot of games where i have saved game progress :)).

                      Do you have some suggestion ?

                      no

                      EDIT 3rd part
                      The other test need to do it's try to set the "vc4-kms-v3d-pi4,noaudio" on config.txt.
                      But i could be wrong but i don't seem to have screen tearing issues :)

                      as i said:

                      all that said, this doesn't seem like any of the known issues i talked about before. so disregard those.

                      DjDiabolikD 1 Reply Last reply Reply Quote 0
                      • S
                        supernalle
                        last edited by

                        Just wanted to chime in here and say that I have exactly the same audio problem.
                        This occurs on all emulators after updating to the latest retropie version, enabling cheevos and updating the os library as well.
                        Pi4 4GB Model B.

                        No problems whatsoever before I added cheevos. Cheevos didnt work correctly with the retropie version I had installed then so therefore I updated and then the audio started "stuttering" from time to time.

                        Will try to reinstall some day soon when I have time and NOT updating OS libraries.

                        dankcushionsD 1 Reply Last reply Reply Quote 0
                        • dankcushionsD
                          dankcushions Global Moderator @supernalle
                          last edited by

                          @supernalle said in Pi4 - 4.7.1x after recent update audio little glitch/struttering or miss some frame on some libretro core... it's fixable ?:

                          Just wanted to chime in here and say that I have exactly the same audio problem.
                          This occurs on all emulators after updating to the latest retropie version, enabling cheevos and updating the os library as well.
                          Pi4 4GB Model B.

                          No problems whatsoever before I added cheevos. Cheevos didnt work correctly with the retropie version I had installed then so therefore I updated and then the audio started "stuttering" from time to time.

                          Will try to reinstall some day soon when I have time and NOT updating OS libraries.

                          are you saying it doesn't happen with updated retropie/retroarch when cheevos are turned OFF? that would make an interesting test.

                          S 1 Reply Last reply Reply Quote 0
                          • DjDiabolikD
                            DjDiabolik @dankcushions
                            last edited by

                            @dankcushions I just turned on my pi4 and before lunch I try the lr-mgba whit CATRAP :)

                            For my previously savestate created whit lr-gambatte for now I will try not to use them.

                            Wait a my feedback immediatelly after lunch in this afternoon :)

                            Thanks again anyway for all the advice :)

                            @supernalle mmmmmm.... interesting how i can check if on my retropie it's enabled or not this cheevos ? what is that ?

                            dankcushionsD 1 Reply Last reply Reply Quote 0
                            • dankcushionsD
                              dankcushions Global Moderator @DjDiabolik
                              last edited by

                              @djdiabolik said in Pi4 - 4.7.1x after recent update audio little glitch/struttering or miss some frame on some libretro core... it's fixable ?:

                              @supernalle mmmmmm.... interesting how i can check if on my retropie it's enabled or not this cheevos ? what is that ?

                              in your previous configs they were not enabled

                              cheevos_enable = "false"
                              

                              and they are not enabled by default either, so probably a red herring.

                              DjDiabolikD 1 Reply Last reply Reply Quote 0
                              • DjDiabolikD
                                DjDiabolik @dankcushions
                                last edited by DjDiabolik

                                @dankcushions said in Pi4 - 4.7.1x after recent update audio little glitch/struttering or miss some frame on some libretro core... it's fixable ?:

                                @djdiabolik said in Pi4 - 4.7.1x after recent update audio little glitch/struttering or miss some frame on some libretro core... it's fixable ?:

                                @supernalle mmmmmm.... interesting how i can check if on my retropie it's enabled or not this cheevos ? what is that ?

                                in your previous configs they were not enabled

                                cheevos_enable = "false"
                                

                                and they are not enabled by default either, so probably a red herring.

                                mmmmmmm...... otherwise just for confirmation.
                                The same "issue" it's also present when i usage lr-mgba ever tested whit same game CATRAP :)

                                the next step it's try to made a better video whit ALL screen captured :) so that you can possibly check if it is tearing or not................ in the next few days I will try to buy something like that:
                                alt text

                                EDIT num.1
                                Using lr-gambatte right now, only for fun, i have tryed I played a game of the super classic TETRIS for GB.
                                The problably most famous BACKGROUND music/loop over the world...... it's be emulated perfectly without the slightest sound problem.

                                a part from CATRAP ever using gambatte I will start testing the weirdest titles to see if there is any other game that has the same problem with the audio.

                                For absurdly I could try like Super Mario Bros for GB that contain vertical scrool and horizotal scrool..... i post other feedback later in same thread :)

                                1 Reply Last reply Reply Quote 0
                                • S
                                  supernalle @dankcushions
                                  last edited by

                                  are you saying it doesn't happen with updated retropie/retroarch when cheevos are turned OFF? that would make an interesting test.

                                  no, i dont think so, will try to disable cheevos before I try to reinstall an older version. The stuttering/glitching started when I updated the retropie + underlying os packages because cheevos wasn't working with my old version of retropie.

                                  DjDiabolikD 1 Reply Last reply Reply Quote 0
                                  • DjDiabolikD
                                    DjDiabolik @supernalle
                                    last edited by

                                    @supernalle said in Pi4 - 4.7.1x after recent update audio little glitch/struttering or miss some frame on some libretro core... it's fixable ?:

                                    no, i dont think so, will try to disable cheevos before I try to reinstall an older version. The stuttering/glitching started when I updated the retropie + underlying os packages because cheevos wasn't working with my old version of retropie.

                                    mmmmmmm... but in my case i have this issue every about 5 o 6 minutes. You have a same exact issue whit same periodicity or you have a something more serious than that of my video?

                                    S 1 Reply Last reply Reply Quote 0
                                    • S
                                      supernalle @DjDiabolik
                                      last edited by

                                      @djdiabolik no it sounds like the same as yours.
                                      have you tried reinstalling retropie completely?

                                      DjDiabolikD 1 Reply Last reply Reply Quote 0
                                      • DjDiabolikD
                                        DjDiabolik @supernalle
                                        last edited by

                                        @supernalle said in Pi4 - 4.7.1x after recent update audio little glitch/struttering or miss some frame on some libretro core... it's fixable ?:

                                        have you tried reinstalling retropie completely?

                                        No... but if i tryed this solution i'm going to use the current weekly image because test right now the "old" 4.7.1 would be a test not very usefull.
                                        But if a clean install made disappear this little trouble can we actually say that some update has corrupted some system component?

                                        DjDiabolikD 1 Reply Last reply Reply Quote 0
                                        • DjDiabolikD
                                          DjDiabolik @DjDiabolik
                                          last edited by DjDiabolik

                                          @dankcushions Hi a have a possibly OT question concern the retroarch.cfg on "all" folder.

                                          Maybe I understand what this non-standard retroarch.cfg creates:

                                          1. I reset the retroarch.cfg..... rename the retroarch.cfg.rp-dist > retroarch.cfg

                                          At this point i need one things........ usually i use a Gamestop Xbox360 wired controlled and this is perfectly work but i like to enable the left analog stick to make it work such as directional arrow :)

                                          For do this usually i run Retroarch from Retropie (same where is retropie setup)... modify the input option for controller1 and after that i save the retroarch.cfg and exit to return to emulationstation.

                                          This step this step creates a new whole retroarch.cfg whit all non-stardard setting like what I posted in the pass here.

                                          At this point my question it's:
                                          How i can prevent this ? How i can modify this setting for the controller whitout overwrite the "all" folder retroarch.cfg ?

                                          1st EDIT
                                          Just for the record.. about two hour ago... after about one week i have upgrade again my retropie setup.
                                          During this i have see a lot of componet of OS it's been updated..... after that approximately 4 or 5 cores have been updated.
                                          When all it's completed whitout any errors i have reboot my OS.... i have play for about 40 minutes the same game CATRAP in an attempt to pass level 90 and the audio problem seems to be less frequent whit this game.
                                          After that i have play a lot of various GB title and whit some other games all it's perfect.......this thing bothers me and triggers me at the same time :)
                                          Until i can register a better video whit full my TV on screen I can't give the idea :)

                                          dankcushionsD 1 Reply Last reply Reply Quote 0
                                          • dankcushionsD
                                            dankcushions Global Moderator @DjDiabolik
                                            last edited by

                                            @djdiabolik said in Pi4 - 4.7.1x after recent update audio little glitch/struttering or miss some frame on some libretro core... it's fixable ?:

                                            For do this usually i run Retroarch from Retropie (same where is retropie setup)... modify the input option for controller1 and after that i save the retroarch.cfg and exit to return to emulationstation.

                                            what exactly are you changing? is it not something you can configure during https://retropie.org.uk/docs/Controller-Configuration/ ?

                                            When all it's completed whitout any errors i have reboot my OS.... i have play for about 40 minutes the same game CATRAP in an attempt to pass level 90 and the audio problem seems to be less frequent whit this game.

                                            it's possible this issue was fixed(?) with retroarch 1.9.5, which retropie recently upgraded to. or maybe a firmware update. who knows...

                                            DjDiabolikD 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.