Skip to content
This repository has been archived by the owner on Sep 27, 2020. It is now read-only.

Use the sound settings from the configuration file #667

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- Bumped virtualgamepads version - virtualkeyboard now available
- Add usb encoder 3H-Dual-Arcade, Mayflash dreamcast adapter
- Add support for smb and upnp protocols in Kodi
- Use the sound settings from the configuration file for the splash screen at boot


## [4.0.0-beta5] - 2016-08-13hs the ratio issue in mame.
Expand Down
19 changes: 18 additions & 1 deletion board/recalbox/fsoverlay/etc/init.d/S02splash
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,24 @@ do_start ()
omx_fnt=""
omx_opt="--no-keys --layer=10000 --aspect-mode=fill"
omx_srt="--no-ghost-box --lines=1 --align=left $omx_fnt --font-size=20 --subtitles=/recalbox/system/resources/splash/recalboxintro.srt"
/usr/bin/omxplayer.bin $omx_opt $omx_srt $video &

# Use the sound settings from the configuration file
audiovolume=`grep audio.volume= /recalbox/share/system/recalbox.conf | cut -d "=" -f 2`
audiodevice=`grep audio.device= /recalbox/share/system/recalbox.conf | cut -d "=" -f 2`

if [ "$audiodevice" == "jack" ]; then
omx_opt=$omx_opt" --adev local"
fi

if [ "$audiodevice" == "hdmi" ]; then
omx_opt=$omx_opt" --adev hdmi"
fi

if [ ! -z $audiovolume ]; then
omx_opt=$omx_opt" --vol $audiovolume"
fi

/usr/bin/omxplayer.bin $omx_opt $omx_srt $video &
PID=$!

# Stop the video when ready
Expand Down