Background Music [Continued from Help/Support]
-
Can anyone help.
I have the background music all up and running thanks Livewire.
The problem I have is ports.
When I run Streets of Rage Remake the background music does not stop.
I have added "sorr" in the emulators list and still does not work.
Does anyone have a way to fade the music in the ports section please?
-
I know this topic is huge, but Livewire's script is a year old. If you look you will see that @synack came up with a much simpler solution that will probably solve both of your issues. Retropie was updated not too long ago with support for runcommand-onstart and onend user scripts. Those scripts can be employed to turn off the music.
I'm not sure anyone is still tweaking Livewire's script.
Should probably be a new topic really, since it's very confusing to switch the discussion to a different method half way through.
-
@Concat said in Background Music [Continued from Help/Support]:
I know this topic is huge, but Livewire's script is a year old. If you look you will see that @synack came up with a much simpler solution that will probably solve both of your issues. Retropie was updated not too long ago with support for runcommand-onstart and onend user scripts. Those scripts can be employed to turn off the music.
I'm not sure anyone is still tweaking Livewire's script.
Should probably be a new topic really, since it's very confusing to switch the discussion to a different method half way through.
Had no idea there was another method can you post a link to it please? Its a shame its not in an official build yet.
-
Looks for synack's original post in this topic.
-
@synack I just tried this and it worked great! Thank you!. One thing, the files runcommand-onstart.sh and runcommand-onend.sh did not exist on /opt/retropie/configs/all so I had to create them. For everyone else doing this, just remember to set chmod 755 on both files. Also, picked up some music from Minibosses to go with it.
-
Just curious, since someone said it above, your splash screen video can render over the top of the emulationstation loading screen?
I'm using the Carbon theme video splash screen and it transitions from that to the emulation station screen.
Is there any extra configuration I can do to have emulation station loading underneath my splash screen video?
My boot text is also off, if that helps. -
@homerotl I followed synack's instructions and created the files missing. I made sure they are set to chmod 755. The issue I have is the music is playing in the menu but it keeps playing when I launch and play a game. I'm on retropie 4.1.10
-
-
The music also does not stop when playing Neo-Geo games with pifba even tho its in the .py script?!
-
@GTR_BOSS said in Background Music [Continued from Help/Support]:
The music also does not stop when playing Neo-Geo games with pifba even tho its in the .py script?!
Are you still trying to get the original scripts to work??? Why not try Synack's method??
-
@Concat Thanks I am going to try and get the other method to work now. Can you please tell me how do I uninstall the first method completely?
-
@GTR_BOSS
Sorry, I never installed it, so I can't help. -
@GTR_BOSS
I guess it depends on what you did originally to install it.I think all you need to is edit
/etc/rc.local
and remove this line from near the bottom:(sudo python /home/pi/PyScripts/Test1.py) &
Then, if you want, you can delete
/home/pi/PyScripts/Test1.py
and then reboot your RPi.
(if you called your .py file something else or put it in a different directory, just substitute as needed!) -
@synack - I went with the original script and have LXDE installed and can't figure out what I should add to the list of emulators to get the music to stop once I launch desktop from within EM. If I F4 out to terminal and enter 'startx' of course the music has already stopped at that point but I want to be able to have music stop playing when launch form within EM. Any suggestions? Thanks a ton.
-
Work perfectly ! Thx !!
-
@synack hey man!
I'm stuck on getting this installed, I get the following:pi@retropie:~ $ sudo apt-get install mpg123
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libltdl7
Suggested packages:
jackd nas oss-compat oss4-base pulseaudio
The following NEW packages will be installed:
libltdl7 mpg123
0 upgraded, 2 newly installed, 0 to remove and 34 not upgraded.
Need to get 152 kB/194 kB of archives.
After this operation, 397 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main mpg123 armhf 1.20.1-2
404 Not Found [IP: 5.153.225.207 80]
E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/m/mpg123/mpg123_1.20.1-2_armhf.deb 404 Not Found [IP: 5.153.225.207 80]E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Anyhelp will be appreciated!
-
@Darby
Trysudo apt-get update
then trysudo apt-get install mpg123
again -
@homerotl Hey hoping you could help I had the same issue with the files not being there, I got music working in the main menu it just does not stop and play again when existing emulators. Care to share in a little more detail how you got the files to work?
-
@synack Hey man I am having some trouble here. I got the music playing at the home screen but when I enter a game the music does not stop. When I first did this I noticed there was no runcommand-onstart.sh and runcommand-onend.sh I had to create them. I think this is the problem any suggestions?? Any help would be appreciated.
(Also side note not as important, any way to decrease volume of music without decrease monitor volume?)
-
@synack said in Background Music [Continued from Help/Support]:
@retrobean Not to derail the thread or take away from @Livewire's contribution here, but you can also just use an external mp3 player such as mpg123 to play music without worrying about details.
- install mpg123
sudo apt-get install mpg123
- edit /opt/retropie/configs/all/autostart.sh and before emulationstation is called;
while pgrep omxplayer >/dev/null; do sleep 1; done mpg123 -Z /home/pi/bgm/*.mp3 >/dev/null 2>&1 &
- edit /opt/retropie/configs/all/runcommand-onstart.sh
pkill -STOP mpg123
- edit /opt/retropie/configs/all/runcommand-onend.sh
pkill -CONT mpg123
- edit /home/pi/.bashrc and add
[[ $(tty) == "/dev/tty1" ]] && pkill mpg123
This will randomly play mp3s from the specified folder (step 2), pause the player upon entering a game, resume when exiting, and also stop the player when exiting emulationstation and dropping to a bash shell.
I'm following this method but I have an issue on autostart.sh incorrect syntax on line 4. This is how I have set up autostart.sh:
while pgrep omxplayer >/dev/null; do sleep 1; done mpg123 -Z /home/pi/bgm/*.mp3 >/dev/null 2>&1 & emulationstation auto#
I don't get it where I wrong, the synack's code is before the emulationstation and there isn't a line 4!
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.