Background Music Compatible with Video Preview Audio?
-
@Highfoot
Actually I added a cpu threshold for emulationstation into my script. Pretty much when ES goes over the cpu_threshold, it will assume that ES is playing a video and do the same fade out.The only downside is that it could still trigger if ES decides to spike up in CPU usage (shuffling through a list of games, etc.), but it's a customizable value so you can set it to whatever you see ES tend to hover at while playing a video. That and it's another package dependency.
I'd still say to see if mitu's suggestion works, and if all else fails, then there is always my script as a workable backup.
-
@mitu I suppose you mean this? These two options makes both the video and sound go away. I don’t really know what to make out of it. If the result of these options is the same as the command manually wrote in the terminal it is really weird, right?
This is my setup, if it is any use to you guys:
Model: Raspberry pi 3b+ built into an Picade cabinet.
Power Supply used: 5.1V 3A
RetroPie Version Used: 4.6 rpi2
Emultationstation 2.9.1RP
Built From: image from Retropie’s official site.
USB Devices connected: none
Controller used: Picade stick and buttons -
@jurassicplayer Wow, sound nice. Really appreciate that! But as you say, let’s see if we can get omxplayer to runt properly. It should not be impossible. :)
-
@Highfoot said in Background Music Compatible with Video Preview Audio?:
It should not be impossible. :)
As I said, take look at the 1st stickied topic in the Help section.
-
@mitu thanks! I first did not get where you meant i should look, but i get it now. I will read this and try this out and get back to you if it was a success. :)
-
Hello again @mitu ,
I followed the post and updated RetroPie-setup script (was that correct?) and Emulationstation. I know have the Alsa to choose from the sound options in ES. I also choose HDMI as Audio device but still no sound. I do notice that the volume slider indeed is stuck to 0% and seems to only work if i choose PCM as Audio device.
When i quit out to the terminal i also saw the “lvl0: VolumeControl::init() - Failed to find mixer elements“ as mentioned in the post.
Worth mentioning is that my audio goes through a speaker that is mounted inside the Picade cabinet. Is HDMI as audio device still correct is that case?
Did i do something wrong/missed something? Sorry for being such a noob...
-
@Highfoot said in Background Music Compatible with Video Preview Audio?:
Did i do something wrong/missed something? Sorry for being such a noob...
Did you read the whole post ? It specifies what settings apply in each audio output situation.
-
@mitu I think so, sorry. I tried both “audio output HDMI” and “Headphone” but none of them worked. I do not see any other options specified. I just noticed though that my screensaver that is set to use omxplayer do have sound, but still nothing on the video previews in the games selection area. Don’t know what to make of that...
I just realized that i mixed up that there is audio settings for both RetroPie and EmulationStation, but i only get “On-board audio disabled or not present” when i go into RetroPie setup.
-
@Highfoot said in Background Music Compatible with Video Preview Audio?:
but i only get “On-board audio disabled or not present” when i go into RetroPie setup.
This usually means you disabled the on-board audio and you have an exernal audio card (I2s/USB).
-
@mitu Yes, there is an HAT on the RP3b+ so i guess The onboard card disabled itself when i installed it with the script provided. On this HAT there is a two pin contact for the speaker that i use. What i now don’t understand is why the audio for the emulators and the screensaver (videos played with omxplayer) do work perfectly, but not the audio for the video previews when selecting games.
The screensaver working is a one step closer at least! :D
-
If you selected
omxplayer
as video player in EmulationStation, then it should be enough to have audio properly working for video previews. The instruction in the sticky post refer to the on-board audio, so they don't match 100% to your case. If you Audio Device doesn't work with any of the options present - HDMI/Headphone are for the on-board audio - you can edit EmulationStation's settings file ($HOME/.emulationstation/es_settings.cfg
) and add the name there. I think more details are in the Audio documentation page. -
@mitu Thanks! I will look into this. :)
-
@mitu Ok, now i just heard that i did have sound on my previews, even when i select games! It is just veeeeery low. The screensaver sound is still on the right volume level, so do not know why they differ, but i vill try to investigate.
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.