Background Music [Continued from Help/Support]
-
@__Scannigan__ said in Background Music [Continued from Help/Support]:
@backstander said in Background Music [Continued from Help/Support]:
@madmodder123
You might try just puttingmpg123 -q <dial-up-modem>.mp3 &
at the very bottom of/etc/rc.local
just above the last lineexit 0
. This should only play that dial up modem sound when you boot your RPi. Then you could still play other random MP3s by using/home/pi/.bashrc
.If that isn't soon enough, you might experiment with putting that mpg123 line up higher in
/etc/rc.local
but make sure to make a back up of that file just in case!I have an even better solution for you. Problem with rc.local is that it's one of the last things to be called in the boot process, so the best thing would be to create a system service in systemd.
Apologies I haven't yet worked out that pretty code embed system :) so this is probably not appropriate forum etiquette
It's very likely that you have sound set up just fine, so I'm going to skip a few steps, in command line
#at command type
sudo modprobe snd-bcm2835
#Create a new file
Sudo nano /etc/modules-load.d/snd-bcm2835.conf
#and in this put just:
snd-bcm2835#Ctrl + O, enter Y and Ctrl-X to save
#At command type
sudo alsactl store#Find whatever sound you want to use, ideally a .wav name it boot-sound.wav and put it in /boot (you'll obviously need to do #this as sudo, so if using WinSCP just change the shell settings under advanced options before you connect.
#Now create a service file
sudo nano /etc/systemd/system/bootsound.service
#Contents of the above should be:
[Unit]
Description=Boot Sound
Wants=sound.target
After=sound.target[Service]
Type=oneshot
RemainAfterExit=no
ExecStart=/usr/bin/aplay /boot/boot-sound.wav 2>&1 >/dev/null &[Install]
WantedBy=multi-user.target#Ctrl + O, enter Y and Ctrl-X to save
#In command line type:
sudo chmod +x /etc/systemd/system/bootsound.service
#then
systemctl enable bootsoundsudo reboot
Wow. How the hell do people know this s**t.
I'm definitely a beginner at this. Half of that I don't understand! Christ I've a lot to learn.
I will try it tonight. Thank you so much for taking time to help me. -
I can't seem to get the music to stop whenever I run vice. I've checked the code and its listed in there. Any ideas?
-
-
@ExarKunIv Sorry, should have mentioned that bit lol
Am using @Livewire 's player
-
I am using Livewire script. Thanks to all for all the hard work.
I had a image (Nacho's 64GB) on my SD card.
My Raspberry is 3 model b. The issue I am having is that on my image the livewire script was already installed. I copied the script to a friend of mines SD card. I works great, the only problem is that the volume is super low. I have tried adjusting the volume via script (maxvolume) but it stays the same. What I found out is that any mp3 that I physically had on my computer and passed to either SD card the volume would be lower than the original music on the image. Does anyone know if by transferring from the computer onto the SD card (copy/paste) I am somehow messing the volume of the mp3's? -
This is great, thank you! Would it be possible to keep the tracks playing during play, either on a game by game or console by console basis? I'd like to keep the music playing in the background of games that don't have their own (i.e. Atari 2600), or possibly at a lowered volume for other games (to simulate the live, 1980's arcade experience).
Other responses in this post seem to indicate granular controls like this; I assume by playing around with the script? How exactly? I'm a noob at this, but have successfully followed technical instructions thus far. Any suggestions would be most appreciated!
-
you will need to add the game to the list of games that @Livewire has in the script for the music to stop playing.
it is on line 25
-
@ExarKunIv As I said, it was in the code already. Yet the music does not stop.
-
ahhh
it is possible that the emulator is not called vice when it starts. or it is one of the odd ones that will not stop. i have come across that with prince of persia.
just like yours music will not stop. -
@ExarKunIv I thought of that. Added all the different instances of vice (lr-vice64, etc) still no luck :(
-
yea i think you have hit one that will not stop the music.
well the other way that @synack posted works. just not has fancy
-
Hi I'm hoping someone knows how to fix this:
I installed background music on retropie 4.2 pi3 per drew talks youtube video:
It works perfect and the music shuts down for every emulator when a game starts, except i just installed DraStic, and for some reason the music won't stop for any of the games using this emulator.
Does anyone have a fix for this?
Thanks,
-
@tmak
You need to edit themusic.py
script and add the DraStic emulator's process name to the list.I haven't tested this but I think this is what you need to do. Just add "drastic" to this list:
#TODO: Fill in all of the current RetroPie Emulator process names in this list. emulatornames = ["drastic","retroarch","ags"............]
BTW, do you know what the name is of the "royalty free" techno song that he used in his video?
-
-
-
@Brigane
Over lunch I played this song in my car...man it has some crazy bass! My wife was kind of embarrassed riding around with me blasting this song when we went to lunch together ;-) -
@ExarKunIv
Just a note...make sure it is in all lowercase like "drastic"...also I'm not 100% sure that's what the process name is for DraStic. Whatever the actually process name is, that is what needs to be put in the script in the "emulatornames =" line. -
@backstander lol, I think I would've driven around by myself to get the attention instead :D
-
yep i know,
i have it both ways, for sh#t and gigglesand i checked the runcommand.log
the it comes up with nds and then drastic right after.some games the music.py script does not see. so far i know of three
-
Hey, thanks for the tip. I did exactly what you said added "drastic" As the very last name In the emulator name list in music.py and it works! :)
I used
Sudo mc to locate the file then
nano to edit it.So far I have tried new super Mario world and surfs up, and the music shuts down.
Now I won't be keeping my gf up at 4am with that antikdote track hahaha.
My next issue, is for some reason the file doesn't save in New super Mario world. I gotta search through the forums for that.
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.