Merge pull request #971 from fewtarius/dev

Add preamp slider to ES.
This commit is contained in:
fewtarius 2023-01-21 10:15:38 -05:00 committed by GitHub
commit 329646047a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 3 deletions

View file

@ -25,6 +25,7 @@ audio.bgmusic=1
audio.device=headphone
audio.display_titles=1
audio.persystem=0
audio.preamp=50
audio.volume=75
bluetooth.enabled=0
boot=Emulationstation

View file

@ -67,5 +67,5 @@ log() {
SOURCE=${1//\/*\//}
MESSAGE=${*#${1}}
MESSAGE=${MESSAGE# }
logger -t ${SOURCE}.notice "${MESSAGE}"
logger -t ${SOURCE} "${MESSAGE}"
}

View file

@ -147,6 +147,14 @@ then
mkcontroller
fi
# Set a default for the audio preamp
PREAMP=$(get_setting audio.preamp)
if [ -z "${PREAMP}" ]
then
echo "Set default preamp." >>${LOG}
set_setting audio.preamp 50
fi
# Disable IPv6 by default
IPV6=$(get_setting ipv6.enabled)
if [ -z "${IPV6}" ]

View file

@ -29,7 +29,8 @@ then
alsactl restore -f /storage/.config/asound.state
fi
amixer -M set Pre-Amp -- 60%
PREAMP=$(get_setting "audio.preamp" 2>/dev/null)
amixer -M set Pre-Amp -- ${PREAMP}%
VOL=$(get_setting "audio.volume" 2>/dev/null)
amixer -M set "${DEVICE_AUDIO_MIXER}" ${VOL}%

View file

@ -3,7 +3,7 @@
# Copyright (C) 2020-present Fewtarius
PKG_NAME="emulationstation"
PKG_VERSION="40e235c"
PKG_VERSION="e5714fb"
PKG_GIT_CLONE_BRANCH="main"
PKG_REV="1"
PKG_ARCH="any"