RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Quick and easy guide for adding music to Emulatonstation on RetroPie. Noob friendly!

    Scheduled Pinned Locked Moved General Discussion and Gaming
    musicbgmsynackguide
    165 Posts 59 Posters 112.4k 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.
    • cyperghostC
      cyperghost @Naprosnia
      last edited by

      @Naprosnia A nice set of scripts that will surly help less advanced users to quick install a mp3 BGM player. There is still room for improvements to the code but this looks much better now. You are heavily mixing shell and bash expressions together ... try to use one style.

      Btw: for variables it is not needed to seperate them
      like BGM=$PATH1"/more/pathes/"$PATH2
      just use BGM="$PATH1/more/pathes/$PATH2" so you will avoid globbing even if it's very uncommon in every other programming language I know but you will appreciate this behaviour.

      1 Reply Last reply Reply Quote 0
      • johnholmesJ
        johnholmes
        last edited by

        Thank you for this nice tutorial. Have followed all instructions and i will be glad now playing my favourite music in background.

        1 Reply Last reply Reply Quote 0
        • WarC0zesW
          WarC0zes
          last edited by

          @Naprosnia Nice update, I love it.

          RetroPie v4.5.1 • RPi3 Model B • NorthPada 5V 3A • 128GB SanDisk Ultra Cat.10 microSDXC • 1 x Logitech Wireless Desktop MK250 • 1 x Qanba Q4RAF USB Arcade joysticks • 1 x PS4 Dualshock4 v2 controller • 1 x Mayflash Dolphinbar + Nintendo WiiMote.

          1 Reply Last reply Reply Quote 0
          • WarC0zesW
            WarC0zes
            last edited by WarC0zes

            @Naprosnia After testing, when I start a game the music is cut and when I leave the game the music doesn't come back.

            My setting in emulationstation / Sound setting:
            Audio card = Default
            Audio device = PCM
            Enable navigation sounds = On
            Enable video audio = On
            Omx player audio device = Both

            RetroPie v4.5.1 • RPi3 Model B • NorthPada 5V 3A • 128GB SanDisk Ultra Cat.10 microSDXC • 1 x Logitech Wireless Desktop MK250 • 1 x Qanba Q4RAF USB Arcade joysticks • 1 x PS4 Dualshock4 v2 controller • 1 x Mayflash Dolphinbar + Nintendo WiiMote.

            BriganeB N 2 Replies Last reply Reply Quote 0
            • BriganeB
              Brigane @WarC0zes
              last edited by

              @WarC0zes Are you using any kind of USB Sound card?

              I cannot elaborate what my problem is at the moment because I'm in school, but I have a similar problem with my setup and I think it has to do with the fact that I'm using a USB Sound card.

              Systems: Raspberry Pi 0/2/3 Model B+
              Os: RetroPie 4.5
              Frontend: Emulationstation & Attract Mode

              1 Reply Last reply Reply Quote 0
              • WarC0zesW
                WarC0zes
                last edited by

                @Brigane No, I don't use a USB sound card. I use that of the pi.

                RetroPie v4.5.1 • RPi3 Model B • NorthPada 5V 3A • 128GB SanDisk Ultra Cat.10 microSDXC • 1 x Logitech Wireless Desktop MK250 • 1 x Qanba Q4RAF USB Arcade joysticks • 1 x PS4 Dualshock4 v2 controller • 1 x Mayflash Dolphinbar + Nintendo WiiMote.

                1 Reply Last reply Reply Quote 0
                • N
                  Naprosnia @WarC0zes
                  last edited by

                  @WarC0zes hello, i did a fresh installation on my system to check if it throw me the same problem, but no, it work normally.

                  - First, i need you to install RetroPie BGM Player again, you can install it over the current installation (dont need to uninstall).
                  [ Q. Why install again? A. Because, i have updated some code, and it could correct your problem. ]
                  -- And check if you got the same problem.

                  --- If yes:
                  ---- I need to know if this occurs with fade effect, without fade effect or both.
                  ---- I need you to check configs/all/ folder and check if you got this file-> runcommand-onend.sh
                  ----- if yes, send me the code you find inside [if any] (you can open this file with any text editor).

                  --- If no:
                  ---- Nice.

                  1 Reply Last reply Reply Quote 0
                  • WarC0zesW
                    WarC0zes
                    last edited by WarC0zes

                    @Naprosnia I install again, but same problem with fade effect or without fade effect.
                    My file runcommand-onend.sh is empty (0 Ko), no error code.

                    RetroPie v4.5.1 • RPi3 Model B • NorthPada 5V 3A • 128GB SanDisk Ultra Cat.10 microSDXC • 1 x Logitech Wireless Desktop MK250 • 1 x Qanba Q4RAF USB Arcade joysticks • 1 x PS4 Dualshock4 v2 controller • 1 x Mayflash Dolphinbar + Nintendo WiiMote.

                    N 1 Reply Last reply Reply Quote 0
                    • N
                      Naprosnia @WarC0zes
                      last edited by Naprosnia

                      @WarC0zes thank for your reply, i think i found the problem.
                      Install again, i updated the online version to correct this problem, but i need someone to test.

                      If the problem persists, uninstall with uninstall.sh file that you found on github (https://github.com/Naprosnia/RetroPie_BGM_Player)
                      and install again.

                      leave some feedback please.

                      1 Reply Last reply Reply Quote 0
                      • WarC0zesW
                        WarC0zes
                        last edited by WarC0zes

                        @Naprosnia
                        Install again = not works.
                        Uninstall with uninstall.sh and install again = Not works.

                        weird all works before your new update.
                        The only change I made since your update, is to steam link installed.

                        RetroPie v4.5.1 • RPi3 Model B • NorthPada 5V 3A • 128GB SanDisk Ultra Cat.10 microSDXC • 1 x Logitech Wireless Desktop MK250 • 1 x Qanba Q4RAF USB Arcade joysticks • 1 x PS4 Dualshock4 v2 controller • 1 x Mayflash Dolphinbar + Nintendo WiiMote.

                        N 1 Reply Last reply Reply Quote 0
                        • N
                          Naprosnia @WarC0zes
                          last edited by

                          @WarC0zes i found the problem. im writing a new fix. wait a sec. when done i tell you.
                          The problem is, sed cannot add new line to the beginning of a empty file.

                          WarC0zesW 1 Reply Last reply Reply Quote 0
                          • WarC0zesW
                            WarC0zes @Naprosnia
                            last edited by

                            @Naprosnia Ok, I'm waiting for your new update ;-)

                            RetroPie v4.5.1 • RPi3 Model B • NorthPada 5V 3A • 128GB SanDisk Ultra Cat.10 microSDXC • 1 x Logitech Wireless Desktop MK250 • 1 x Qanba Q4RAF USB Arcade joysticks • 1 x PS4 Dualshock4 v2 controller • 1 x Mayflash Dolphinbar + Nintendo WiiMote.

                            N 1 Reply Last reply Reply Quote 0
                            • N
                              Naprosnia @WarC0zes
                              last edited by

                              @WarC0zes you can install now.

                              1 Reply Last reply Reply Quote 0
                              • WarC0zesW
                                WarC0zes
                                last edited by

                                @Naprosnia it works now, thanks a lot :D

                                RetroPie v4.5.1 • RPi3 Model B • NorthPada 5V 3A • 128GB SanDisk Ultra Cat.10 microSDXC • 1 x Logitech Wireless Desktop MK250 • 1 x Qanba Q4RAF USB Arcade joysticks • 1 x PS4 Dualshock4 v2 controller • 1 x Mayflash Dolphinbar + Nintendo WiiMote.

                                N 1 Reply Last reply Reply Quote 0
                                • N
                                  Naprosnia @WarC0zes
                                  last edited by

                                  @WarC0zes I thank you to.

                                  1 Reply Last reply Reply Quote 0
                                  • WarC0zesW
                                    WarC0zes
                                    last edited by

                                    @Naprosnia I found a bug with fade effect when I leave the game, the system volume goes to 73% or 83% instead of staying at 100%. Without fade effect it's good, it stays at 100%.

                                    RetroPie v4.5.1 • RPi3 Model B • NorthPada 5V 3A • 128GB SanDisk Ultra Cat.10 microSDXC • 1 x Logitech Wireless Desktop MK250 • 1 x Qanba Q4RAF USB Arcade joysticks • 1 x PS4 Dualshock4 v2 controller • 1 x Mayflash Dolphinbar + Nintendo WiiMote.

                                    N 1 Reply Last reply Reply Quote 0
                                    • N
                                      Naprosnia @WarC0zes
                                      last edited by

                                      @WarC0zes hello, if you enter a game with 100% volume, when you leave it, the volume go to 73/83?
                                      I'll check that out.

                                      1 Reply Last reply Reply Quote 0
                                      • WarC0zesW
                                        WarC0zes
                                        last edited by

                                        @Naprosnia Yes, exactly. With fade effect enable.

                                        RetroPie v4.5.1 • RPi3 Model B • NorthPada 5V 3A • 128GB SanDisk Ultra Cat.10 microSDXC • 1 x Logitech Wireless Desktop MK250 • 1 x Qanba Q4RAF USB Arcade joysticks • 1 x PS4 Dualshock4 v2 controller • 1 x Mayflash Dolphinbar + Nintendo WiiMote.

                                        N 1 Reply Last reply Reply Quote 0
                                        • N
                                          Naprosnia @WarC0zes
                                          last edited by

                                          @WarC0zes fixed now. I put an extra option on RetroPie-BGM-Player / BGM Update menu, to reinstall everything. So if you need to reinstall it, simply go to update and select reinstall.

                                          But for now you need to reinstall again manually.

                                          WarC0zesW 1 Reply Last reply Reply Quote 0
                                          • WarC0zesW
                                            WarC0zes @Naprosnia
                                            last edited by

                                            @Naprosnia It's good the volume stays at 100% now. Thanks.

                                            RetroPie v4.5.1 • RPi3 Model B • NorthPada 5V 3A • 128GB SanDisk Ultra Cat.10 microSDXC • 1 x Logitech Wireless Desktop MK250 • 1 x Qanba Q4RAF USB Arcade joysticks • 1 x PS4 Dualshock4 v2 controller • 1 x Mayflash Dolphinbar + Nintendo WiiMote.

                                            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.