Background Music [Continued from Help/Support]
-
hey guys i follow the easy way but i have one problem: my pi says the bgm folder already exsist but i cannot find the folder anywhere i tried over USB and Windows PC to copie my mp3, when i create the folder my pi says that he cannot create an exsisting folder
-
@livewire so I Googled how to put background music on my retro pi. Well I get this error about one songs says it's not an Ogg file yet all the songs play it doesn't even tell me which song it is so I have no idea which one it could be you got any suggestions?
-
I've found that mpg123 will occasionally make my entire pi freeze when idle for a while so just in case you've been getting this like I have, kill mpg123 and see if it fixes your stability problems.
-
@anassassinsblade
that is odd, i have only mp3 in mine and i dont get any errorsother then having to remove and put one song in at a time, i would say try a different format maybe
-
@jman Hi did you solved the problem with the music background while you run Daphne? Thanks a lot
-
@milleland Change the emulator name to: daphne.sh
-
"vice.sh" seems to work.
You can see the tree of running processes with the shell command pstree. Compare the trees while running different emulators or ports and you should find the correct process name.
-
EXCELLENT METHOD, by far the best and most simplist so far. No errors anywhere either. My only issue is as stated previously when launching LXDE/Pixel from ES, music continues. Also when launching PPSSPP for PSP games, the music continues. Any advice sir? Any and all assistance will be highly appreciated!
-
@auz10 You need to edit this file: bgmusic.py (located in /home/pi/PyScripts). In here add PPSSPPSDL to the list of emulators. Now the music will stop when you start PPSSPP.
-
@bobharris Would you have a solution to kill the music when launching the Pixel Desktop (Chromium) ?
-
Is there a particular reason you guys aren't using the runcommand-onstart and onend scripts to kill and restart the music without needing to add emulator names anywhere?
-
@bytethis No sorry. I figured out the names of some emulators by starting an emulator, opening winscp on my pc, connecting to the pi, opening a terminal in winscp and typing: ps -A . This shows you the names of all the running programs. You could find out what name is used for the Pixel Desktop and add it to the emulator list (treating it as an emulator). But I have no idea if that even works. I can't think of any other solution, except trying a different route , like the method Zerojay is talking about.
@zerojay There are some extra functionalities: Set a startsong, start a new song after exiting a game, music fade out when starting a game. When you add the missing emulators, it works just as well.
-
@bobharris Ok..thanks ! I will play around with it and see what I can come up with.
-
i believe the other way that is posted here uses the runcommand to kill it, but it is way to sudden. some people like that way.
personally i like this way, yes it can be a pain to get the emulator to stop the music, but for me that is half the fun :) -
Hey. I'm using the script from OP for a while now. Is there a way to mute and resume or start/stop it?
I can't figure out how :( -
Just wanted to add thanks for this method of adding music to the Pi. It works beautifully and has been glitch free for me so far. :-) Very easy to setup. Brilliant!
-
I updated this script to add overlays of song titles when browsing ES
https://retropie.org.uk/forum/topic/16458/modfied-background-music-script-with-added-overlays
-
This post is deleted! -
I have try the script, and the other solutions and that never pause the music when OMXPlayer read a video.
Is there a solution ? i don't understand how to do it.
The music is only PAUSE when i launch an emulator.
Thanks -
@darknior emulatornames = ["retroarch","ags","uae4all2","uae4arm","capricerpi","linapple","hatari","stella","atari800","xroar","vice","daphne","reicast","pifba","osmose","gpsp","jzintv","basiliskll","mame","advmame","dgen","openmsx","mupen64plus","gngeo","dosbox","ppsspp","simcoupe","scummvm","snes9x","pisnes","frotz","fbzx","fuse","gemrb","cgenesis","zdoom","eduke32","lincity","love","kodi","alephone","micropolis","openbor","openttd","opentyrian","cannonball","tyrquake","ioquake3","residualvm","xrick","sdlpop","uqm","stratagus","wolf4sdl","solarus","drastic","coolcv","PPSSPPSDL","moonlight","Xorg","smw","omxplayer.bin"]
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.