Background Music [Continued from Help/Support]
-
your using livewire or synack method?
-
@exarkuniv trying to use whichever will give me desired results. Which do you recommend?
-
depends on how you feel doing the coding.
livewires give you more ability to edit the script.
synack is easier to set and go.
personally i use livewires i like how it fades the song better then it just ending
-
@exarkuniv
depends on how you feel doing the coding.livewires give you more ability to edit the script.
synack is easier to set and go.
personally i use livewires i like how it fades the song better then it just ending
Okay, I am super green. Synack method worked to start and stop the music great. But editing the bash file has me confused. When I follow his directions I do get a file, but it isn't like the other .sh files. There is not a command to save, nor any directions on where to add the file; I assume it's not a random placing.
So far I can undo everything by editing the .sh files...
I can't uninstall mpg123...no idea how, I would love the live wires method, but I have no idea how to get my .rclocal file to show up with something in it. -
-
@exarkuniv
Okay, this worked for me. Does this method play randomly if I dump a bunch of mp3s into this folder? -
@hankola
if you followed the link then no. it will start right where is ended. but if you edit the following then it will do randomTo start a new set of tracks (upon game exit) instead of continuing from the last, you'd replace the original instructions do the following
edit /opt/retropie/configs/all/runcommand-onstart.sh
pkill mpg123
edit /opt/retropie/configs/all/runcommand-onend.sh
mpg123 -Z /home/pi/bgm/*.mp3 >/dev/null 2>&1 &
or if you wanted to keep logging the played tracks, you'd use this line instead in the runcommand-onend.sh script
mpg123 -Z /home/pi/bgm/*.mp3 2>>/dev/shm/playlist &
-
@exarkuniv all done. It is working great!
-
@nayin said in Background Music [Continued from Help/Support]:
I am trying to add the amiberry emulator without success.
What is the exact name of "amiberry" to add in emulators line?
Thx!Some help?
-
@nayin How is this issue related to the topic "Background Music"?
-
Sorry, if I am not explained to me well.
When I run amiberry emulator, the background music does not stop. -
@Nayin How do you play your BGM - via mpg123 = @synack method
or via phyton script?The Amiberry emulator, how do you start it? Via runcommand.sh? Means you see they grey loading box if you select a ROM?
-
@cyperghost said in Background Music [Continued from Help/Support]:
@Nayin How do you play your BGM - via mpg123 = @synack method
or via phyton script?The Amiberry emulator, how do you start it? Via runcommand.sh? Means you see they grey loading box if you select a ROM?
Via phyton script, I start the emulator using emulationstation (WHDLoad Pack).
-
@nayin My first suggestion is to edit python script and add emulatorname to it
line 25 in https://pastebin.com/7E9JiZGQYou can check if emulator is running via SSH and
ps -a
command to get correct name. The mpg123 is better imho as it relies on runcommand ... -
Thx! The correct name is amiberry.sh
-
That won't work as amiberry is a bash file.... start the emulator and use
ps -a
command to extract emuname it's 99% likelyamiberry
but not sure...You need the name of the binary... Maybe if you edit the amiberry.sh you see binary call and add the name to the python script
-
I understand this is a forum for Rasp Pi stuff but trust me I've searched far and wide for a solution.
Anybody have a clue on how to implement this into the windows version of emulation station?
I've tried doing it with running python on PC and attempting to edit some of the scripts but my knowledge of scripting is well frankly poor so yeah...
-
Been a while since I have had time to tweak my retropie setup. Is there a way to stop the bgm when the screensaver begins? I have videos for all my games that randomly play.
-
@livewire
wow, thank you so much, this works perfect for me. :) -
I found a tutorial that allows you to use voice commands to play songs from youtube.
if you install python3-pip then it works great. You just tell google to play whatever you want to hear and it plays it from youtube. in the background.
It's not really easier than this because you have to install google assistant (which means setting up an oauth key) but if you can follow semi-technical walkthroughs you can do it and have remote storage of most songs.
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.