Background Music [Continued from Help/Support]
-
@time2purge said in Background Music [Continued from Help/Support]:
@ExarKunIv i try what you said it came back as Errno 3 No such file or directory..but here's something really messed up, changed out the music file and it started back up..so maybe changing the file fixed it.
-
glad that it seemed to get fixed. now what and why i cant say, and sometimes its better to leave it at that
-
-
@ExarKunIv yea that looks like exactly what I need. Thank you! I'll try that out
-
New to RetroPie, managed to get this working perfectly.
However I have noticed that when I launch the desktop environment the music continues to play, has anyone else encountered this problem? -
its happening due to the music script not knowing what too look for so it knows when to stop.
if you are using the setup from the very beginning of this post. then you will need to edit the music script and add what the desktop it called when it starts to the list.
-
@concat said in Background Music [Continued from Help/Support]:
Hmmm terminal is spitting out "ALSA lib pcm.c:7843:(snd_pcm_recover) underrun occurred" now.
did u have find a solution for this problem? i have it too and the sound every X minute stop for 1/2 seconds and freeze the entire station . thanks
-
This works great!
Unfortunately, ever since I did this, my ES doesn't start loading until after my splash video ends, when before it used to be up and running by the time the video was over.
Is it possible that mpg123 is waiting to run until after the video ends, thus also delaying the startup of ES?
-
Using @synack 's method, does anyone know of a way to play songs in order, like a playlist, instead of randomly?
-
Hi, I recently made a modification to Livewire's python script to support pausing music when video playback starts in a window or screensaver, if you have this feature is enabled on an es theme. Essentially, it will now detect the omxplayer video process and pause accordingly. I have also tested timers to ensure music stays paused when loading between videos to ensure music does not go on and off as you browse through games.
I hope this proves helpful, CK
-
nice work.
i dont have any vids yet, but it is nice to know that i will not have over lapping sound.
thx for this
-
@synack I love the simplicity. It worked instantly!
After tinkering for a bit, my preference was to have a new piece of music start when returning from a game, instead of picking up the previous song where it left off. I changed the (runcommand-onstart) to simply kill mpg123, instead of pausing, and the (runcommand-onend) to re-open mpg123 with the same parameters you used in the autostart. Now, when I exit a game a new random piece of game music begins (I downloaded a slew of game music rips). The transition seems smooth (I was afraid that re-starting the player might throw me out of the Emulationstation screen for a moment, but it's a clean return to the game list.
Hopefully, I did it right - no smoke emanated from my Pi... =)
EDIT - Of course, after looking at the thread again - you already mentioned how to do that earlier in the thread (duh). But, I suppose tinkering on my own is the way to learn, right?
-
Someone suggested that earlier and he did provide an update somewhere for that, it's a very long thread. Maybe with your tinkering powers you can help me!
Do you have any idea as how to play songs in order, like a playlist, as opposed to a randomly chosen song?
-
Hi,
This works all fine! Thx!
But i have a question.I have many songs in the rome file.
Also i set a startsong for the first boot from ES.
This all works great.
Song play at start and than random music.But i wanna have a second "startsong" who plays if i leave the game /emulator.
for example:
RPI3 boot -> ES Starts -> Startsong "A" plays -> after song, random music starts -> Start game -> exit game -> Startsong "B" plays -> after song, random music starts
can someone help me?
System:
RPI3 Retropie 4.2.16
-
Is the startsong only for Livewire's method or Synack's? That's exactly what I've been looking for!
-
-
i think @Livewire is the only have that has the ability to pick a start song
but i think both have the ability to start a new song when exiting a game.
i just dont think you can have a second pick song to start like @Lumpeidi is asking for, but maybe someone can find a wayi use livewire's so i know that it works.
-
I am trying to add the amiberry emulator without success.
What is the exact name of "amiberry" to add in emulators line?
Thx! -
@livewire
Run "sudo nano /etc/rc.local"
This file should have a bunch of commented stuff at the top, and "exit 0;" near the bottom. Above exit 0, put the following code, replacing the path with where you installed the script to earlier: "(sudo python /home/pi/PyScripts/Test1.py) &". For full disclosure, the & at the end runs the script in the background, which is necessary as it will run infinitely until the system shuts down.
As before, press control+x, y, and enter to save changes.When I try to run this my file is empty. Can I simply type it in as it is written in other posts or videos?
-
Here we can toggle/restart music via @synack method
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.