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

    Background Music [Continued from Help/Support]

    Scheduled Pinned Locked Moved General Discussion and Gaming
    musicbgm
    343 Posts 109 Posters 331.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.
    • BriganeB
      Brigane @huettmaster
      last edited by

      @huettmaster Are you using any external devices such as 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
      • H
        huettmaster
        last edited by huettmaster

        no. all roms and the music are located on the sd-scard...

        1 Reply Last reply Reply Quote 0
        • J
          jman
          last edited by

          I am loading my roms off a usb stick so far pifba and daphne do not work the music just plays right through.

          ExarKunIvE 1 Reply Last reply Reply Quote 0
          • ExarKunIvE
            ExarKunIv @jman
            last edited by

            @jman

            it just might not work. i have come across the port of prince of persia the music plays right thought also.

            you might want to look in to using what @synack posted for a different way. Im going to be giving it a try my self. I still like @Livewire version more, but for what ever reason when i have DraStic in the list. my controller stop working.

            sucks but what can you do.

            RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
            RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
            Maintainer of RetroPie-Extra .

            1 Reply Last reply Reply Quote 0
            • johnboywJ
              johnboyw
              last edited by

              I have followed everything and triple checked it. I still have no sound though. I have the pi 3 if that makes any difference?
              Can anyone throw any pointers my way?

              1 Reply Last reply Reply Quote 0
              • S
                samuel95_54 @Darby
                last edited by

                @Darby
                try
                sudo apt-get update
                then
                sudo apt-get install mpg123

                Should work after the update.

                johnboywJ 1 Reply Last reply Reply Quote 0
                • johnboywJ
                  johnboyw @samuel95_54
                  last edited by

                  @samuel95_54 said in Background Music [Continued from Help/Support]:

                  @Darby
                  try
                  sudo apt-get update
                  then
                  sudo apt-get install mpg123

                  Should work after the update.

                  I have tried op way and also the mpg123 way. Neither give me sound. I know everything sound related is working as I can hear noises when I navigate around the emulator menus.

                  ExarKunIvE B 2 Replies Last reply Reply Quote 0
                  • ExarKunIvE
                    ExarKunIv @johnboyw
                    last edited by

                    @johnboyw

                    we need a little more info to help. do you have the commands in /rc.local correct if you are useing the op way

                    and for mpg123 do you have all the commands for runcommand-onstart.sh and runcommand-onend.sh correct

                    also where is your music folder?

                    RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                    RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                    Maintainer of RetroPie-Extra .

                    johnboywJ 1 Reply Last reply Reply Quote 0
                    • B
                      backstander @johnboyw
                      last edited by

                      @johnboyw
                      If you're using HDMI cable sound, try forcing HDMI audio out by adding hdmi_drive=2 to your /boot/config.txt then restart your RPi.

                      Here's some more sound troubleshooting:
                      https://github.com/RetroPie/RetroPie-Setup/wiki/Sound-Issues

                      johnboywJ 1 Reply Last reply Reply Quote 0
                      • johnboywJ
                        johnboyw @ExarKunIv
                        last edited by johnboyw

                        @ExarKunIv said in Background Music [Continued from Help/Support]:

                        @johnboyw

                        we need a little more info to help. do you have the commands in /rc.local correct if you are useing the op way

                        and for mpg123 do you have all the commands for runcommand-onstart.sh and runcommand-onend.sh correct

                        also where is your musIc folder

                        0_1490291515518_IMG_0510.JPG

                        B 1 Reply Last reply Reply Quote 0
                        • johnboywJ
                          johnboyw @backstander
                          last edited by

                          @backstander said in Background Music [Continued from Help/Support]:

                          @johnboyw
                          If you're using HDMI cable sound, try forcing HDMI audio out by adding hdmi_drive=2 to your /boot/config.txt then restart your RPi.

                          Here's some more sound troubleshooting:
                          https://github.com/RetroPie/RetroPie-Setup/wiki/Sound-Issues

                          I have sound just no music playing.

                          ExarKunIvE 1 Reply Last reply Reply Quote 0
                          • ExarKunIvE
                            ExarKunIv @johnboyw
                            last edited by

                            @johnboyw

                            did you edit the music.py at all?

                            RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                            RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                            Maintainer of RetroPie-Extra .

                            johnboywJ 1 Reply Last reply Reply Quote 0
                            • B
                              backstander @johnboyw
                              last edited by backstander

                              @johnboyw
                              Unless you have already edited your music.py script, you should move just your Music files to /home/pi/RetroPie/roms/music

                              Or if you don't want to move your Music files, you could just edit your /home/pi/RetroPie/roms/music/Script/music.py script to point to the actual music directory you are using like this:

                              musicdir = '/home/pi/RetroPie/roms/music/Script'
                              
                              johnboywJ 1 Reply Last reply Reply Quote 0
                              • johnboywJ
                                johnboyw @backstander
                                last edited by

                                @backstander said in Background Music [Continued from Help/Support]:

                                @johnboyw
                                Unless you have already edited your music.py script, you should move just your Music files to /home/pi/RetroPie/roms/music

                                Or if you don't want to move your Music files, you could just edit your music.py script to point to the actual music directory you are using like this:

                                musicdir = '/home/pi/RetroPie/roms/music/Script'
                                

                                I've already tried it in that folder. That didn't work either.

                                1 Reply Last reply Reply Quote 0
                                • johnboywJ
                                  johnboyw @ExarKunIv
                                  last edited by

                                  @ExarKunIv said in Background Music [Continued from Help/Support]:

                                  @johnboyw

                                  did you edit the music.py at all?

                                  All I did was follow the instructions at the top by the op. That didn't work so I then tried the second one. That didn't work so I then saw another version in a different forum that I tried. Hence the reason why my music is in that script folder now.

                                  ExarKunIvE 1 Reply Last reply Reply Quote 0
                                  • ExarKunIvE
                                    ExarKunIv @johnboyw
                                    last edited by ExarKunIv

                                    @johnboyw

                                    im sure that it will not do anything but put a enter after the &

                                    (sudo python /home/pi/BGmusic.py) &
                                    
                                    exit 0
                                    

                                    this is from my rc.local so thats why its different

                                    RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                                    RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                                    Maintainer of RetroPie-Extra .

                                    1 Reply Last reply Reply Quote 0
                                    • johnboywJ
                                      johnboyw
                                      last edited by

                                      Thanks for all the help. I'm very new to all this. I've only just bought my pi. I usually just mess with phone ROMs. I've no idea when it comes to coding etc. But I'm prepared to learn.
                                      I'll try the things mentioned when I get home.
                                      Thank you.

                                      ExarKunIvE 1 Reply Last reply Reply Quote 0
                                      • ExarKunIvE
                                        ExarKunIv @johnboyw
                                        last edited by

                                        @johnboyw

                                        not a problem. im still kinda new myself.
                                        just keep asking and we'll keep trying to help

                                        RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                                        RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                                        Maintainer of RetroPie-Extra .

                                        1 Reply Last reply Reply Quote 0
                                        • johnboywJ
                                          johnboyw
                                          last edited by

                                          I'm also trying to get videos to show in the emulators. But that's another story 😂

                                          ExarKunIvE 1 Reply Last reply Reply Quote 0
                                          • ExarKunIvE
                                            ExarKunIv @johnboyw
                                            last edited by

                                            @johnboyw

                                            that i have not tried yet. so good luck :P

                                            RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                                            RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                                            Maintainer of RetroPie-Extra .

                                            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.