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

    AmiBerry - Choppy Sound

    Scheduled Pinned Locked Moved Help and Support
    amiberrywhdloadschoopy soundlaggy sound
    13 Posts 4 Posters 936 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.
    • K
      KpCollins
      last edited by KpCollins

      Hello, New to all this and new to Linux. Having a bit of trouble.

      Most games i've been successful with but Amiga i cannot get to run correctly. My Specs are as follows

      Pi3 B a02082
      Running Retropie - 4.7.1 ( Done on a freshly wiped and re-partitioned SD card 2 Different ones )
      Using Amiberry - Latest Updated from Source and WHDLoads
      Legit power supply
      USB Connected currently - Dual Shock 4, USB Keyboard & Mouse
      Using HDMI - Have tried with 3.5mm jack - Same Result
      I have read every source of information at Retropie.org.uk and scoured google to no avail :/

      I have tried multiple display resolutions.
      The games themselves run perfect, I cannot fault the performance. The sound is also fine during cut scenes.
      Once in a game it will be choppy, Like half a second of sound then half a second of none over and over.

      Its forcing me to Use Dosbox for the games I like ( univserse, Cannon Fodder ) but i'd really love to use the Amiga Emulator to its full potential, Its putting me off filling the library.

      Any help is appreciated

      1 Reply Last reply Reply Quote 0
      • N
        nemo93
        last edited by nemo93

        hi @KpCollins ! Choppy sound on Amiberry may be due to a lack of CPU "power" on your device. Yet on a Pi3B (not B+?) games like Cannon Fodder should run fine as I recall. Therefore let's focus on that game for now if you don't mind.

        First of all please make sure you have updated your Retropie distribution packages. To do that you have two options:

        1. login via SSH to your Pi and run the following command
        $ sudo apt update && sudo apt full-upgrade -y
        
        1. Via Retropie Setup. Either from EmulationStation (frontend) in the Retropie category find the Retropie Setup item or via SSH by doing the following.
        $ sudo ~/RetroPie-Setup/retropie_setup.sh
        

        Then go to Configuration / Tools (C) > Raspbian Tools (15) > Upgrade packages (1)

        Then run Amiberry with a game and get into the GUI (default by pressing F12). If you go to the About section you should see Amiberry version. It should be 3.3.

        I'll need to ensure that you're running .lha (WHD packages) version of the games. For instance, Cannon Fodder should be named after CannonFodder_v2.0_0860.lha. The file name is important and must not be changed. If you're doing things right the game should run straight to a Workbench screen with some trainers to chose from then run normally (with the amazing main theme intro). If you see any other screen before then something else is wrong.

        Stick to HDMI for the time being.

        K 1 Reply Last reply Reply Quote 0
        • K
          KpCollins @nemo93
          last edited by

          @nemo93

          Thank you, I'll have a look at the options you gave above as soon as I finish work. Got a full 5 days to play with this thing

          One thing you mentioned was the file name and you really emphasized on not changing it. I have, Its still Lha just taken the numbers off. Could this be it?

          N 1 Reply Last reply Reply Quote 0
          • N
            nemo93 @KpCollins
            last edited by

            @kpcollins please do not alter even a single letter or number in the file name. This because the emulator will use this package (lha) name to attempt a kind of auto-configuration. To ensure game works best out-of-the-box so to speak.

            K 1 Reply Last reply Reply Quote 0
            • K
              KpCollins @nemo93
              last edited by

              @nemo93

              Ok, Done what you've advised above and ran the updates. I also copied Both universe and Cannon Fodder with their original file names to the rom file path. No Change

              i've checked the version and its not 3.3, Its running 4.1.2? Dated 06-04-2021. This was done from the source and updated last night prior to posting here

              mituM 1 Reply Last reply Reply Quote 0
              • mituM
                mitu Global Moderator @KpCollins
                last edited by

                @kpcollins said in AmiBerry - Choppy Sound:

                i've checked the version and its not 3.3, Its running 4.1.2? Dated 06-04-2021. This was done from the source and updated last night prior to posting here

                RetroPie doesn't package the 4.x branch (yet), did you modify the build script to install the newer version ?

                K 1 Reply Last reply Reply Quote 0
                • K
                  KpCollins @mitu
                  last edited by

                  @mitu

                  No, My exact steps where

                  Originally installed from Source, that was about a week ago and then last night I updated from Source. I've not changed any configs or anything I should not have...that I am aware of

                  Looking at down grading it to 3.3 now. Would i just remove package and re-install from binary?

                  1 Reply Last reply Reply Quote 0
                  • K
                    KpCollins
                    last edited by

                    225269a8-69b6-4ada-b6c0-021089de96e4-image.png

                    mituM 1 Reply Last reply Reply Quote 0
                    • mituM
                      mitu Global Moderator @KpCollins
                      last edited by

                      You installed it from source, sure, but even so it would still install amiberry 3.3 version and not 4.1.2. Re-install from binary and check that you have the 3.3 version.

                      K 1 Reply Last reply Reply Quote 0
                      • K
                        KpCollins @mitu
                        last edited by

                        @mitu Just re-installed from binary and its now confirmed as 3.3

                        The sound is still very slightly choppy on Universe but its a massive improvement over what it was.
                        Checking Cannon Fodder and Chaos Engine will report back in a sec

                        1 Reply Last reply Reply Quote 0
                        • K
                          KpCollins
                          last edited by

                          Cannon Fodder plays perfect, 100% Downloaded it from the Source though.

                          Thanks for this, While Universe is still slightly choppy it is a miles better than it was before, If you can help with anything I can do to make it perfect I'd be grateful but my experience of Emulation is to be happy with near perfect.

                          N LolonoisL 2 Replies Last reply Reply Quote 0
                          • N
                            nemo93 @KpCollins
                            last edited by

                            @mitu thanks for the super fast responses and assistance as always!

                            @kpcollins there are still some minor issues to be ironed out with version 4.x hence the decision to stick to 3.3 for now. I believe you first compiled Amiberry when Retropie was still "plugged" onto the 4.x branch. You haven't updated the Retropie script for some time hence not catching the branch update. Always update the Retropie script first thing :-)

                            Glad you got it working! To be honest Amiberry does run great on Pi3 and above with excellent compatibility. Some games might run slower on Pi3 due to heavy copper list or other reasons (Jim Power for instance is running a bit slow on Pi3 as I recall).

                            I haven't tested Universe on Amiberry but it reminds me of one of a few (the only?) games to be able to display 256 colours on an Amiga 500. After checking I do confirm that's a copper trick. Hence this game might run a bit slower on pi3 compared to pi4. I'll see if I can tweak the settings a bit to get it working perfect but no guarantee.

                            Amiberry relies on an external file (let's call it "the xml") to adjust some settings for you and to ensure game will run automatically smooth. Users are encouraged to regularly use the "Update WHDLoad Database/XML" function which is located in the 'Paths' panel from GUI to ensure that any files they are using are included within the database, with the most recently submitted improvements.

                            1 Reply Last reply Reply Quote 0
                            • LolonoisL
                              Lolonois @KpCollins
                              last edited by

                              @kpcollins This workaround helped me as I ran Amiberry on a Rpi3.

                              2021's adapted workaround:

                              1. Connect via SSH to your Rpi.
                              2. Change to amiberry emulator folder: cd /opt/retropie/emulators/amiberry
                              3. Edit file amiberry.sh: sudo nano amiberry.sh
                              4. The change to be done is at line 20:
                                Change
                              "$emulator" --autoload "$rom" -G
                              

                              to

                               "$emulator" -autoload="$rom" -s sound_frequency=32000 -G
                              
                              1. Save and quit: Ctrl-X and answer y when prompted.

                              HTH

                              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.