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

    Problem background music

    Scheduled Pinned Locked Moved Help and Support
    ruckage
    3 Posts 3 Posters 382 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.
    • T
      trusto481
      last edited by

      Hello

      I would like to add background music to my raspberry pi0 with retropie version 4.4
      the problem is that I tried to follow the guides with putty but I just can't make it work ...
      doing the procedure on putty always gives me some errors and listallation is not successful ...
      do you know if there is another procedure dedicated and easier to install?

      I tried them all but nothing

      1 Reply Last reply Reply Quote 0
      • EfriimE
        Efriim
        last edited by

        A link to the guide you used along with the type of music would help.

        I think that you will need to install with root (elevated priveleges/adminstrator) the command sudo will give you temporary root
        sudo apt install mpg123

        the rest in this should explain.
        https://retropie.org.uk/forum/topic/9133/quick-and-easy-guide-for-adding-music-to-emulatonstation-on-retropie-noob-friendly

        there is another guide that I used create a random playlist.... somewhere.

        1 Reply Last reply Reply Quote 0
        • BobHarrisB
          BobHarris
          last edited by BobHarris

          These are the installation steps for the program I'm using (different from mpg123):

          Press F4 in emulationstation and type the following:
          sudo apt-get install python-pygame
          (You’ll need to type “y” when prompted)
          mkdir -p ~/PyScripts
          wget -O ~/PyScripts/bgmusic.py http://pastebin.com/raw/KpUaZuSz
          sudo nano /etc/rc.local
          Insert “(sudo python /home/pi/PyScripts/bgmusic.py) &” (without quotes) on any line before the “exit 0” line
          Press Ctrl+o, Enter, then Ctrl+x to save changes and exit the editor
          Connect through Windows to \retropie\roms\ and create a folder called “music”. Place your mp3s in there.
          If you want to edit the script you can use this command to edit:
          nano ~/PyScripts/bgmusic.py
          When finished you can press Ctrl+o, Enter, then Ctrl+x to save and exit.

          (In the file called bgmusic.py there is a list of emulator names. A few are missing (for example the PSP emulator). This means that the music does not stop playing when starting a game in such an emulator. But that is solved easily by adding the name of the emulator to the file. To find out the name of an emulator, start a game in the specific emulator, then open Winscp (or a similar program) on your computer, connect to the Pi, open a terminal and type 'ps -A'. With this command you see all the processes running on the Pi. )

          It's a very nice little program. Music plays randomly and it fades in and out in between games and, in the bgmusic.py file, you can set a song that always plays when booting the Pi (I'm using the PS1 intro music)

          Pi 3B , 64 GB Sandisk ultra flashdrive, 19 systems, 872 hand picked classic gaming gems :-) Dual shock 4v2

          1 Reply Last reply Reply Quote 1
          • 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.