mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 21:26:49 +00:00
kodi: dynamically set audio device to what kodi was built with
This commit is contained in:
parent
245fc2894c
commit
adb7a8fa53
@ -1,4 +1,4 @@
|
||||
KODI_AE_SINK=ALSA+PULSE
|
||||
KODI_AE_SINK=@KODI_AE_SINK@
|
||||
HOME=/storage
|
||||
KODI_TEMP=/storage/.kodi/temp
|
||||
KODI_HOME=/usr/share/kodi/
|
@ -275,7 +275,16 @@ post_makeinstall_target() {
|
||||
-e "s|@KODI_MAX_SECONDS@|${KODI_MAX_SECONDS:-900}|g" \
|
||||
-i ${INSTALL}/usr/lib/kodi/kodi.sh
|
||||
|
||||
cp ${PKG_DIR}/config/kodi.conf ${INSTALL}/usr/lib/kodi/kodi.conf
|
||||
if [ "${KODI_PULSEAUDIO_SUPPORT}" = "yes" -a "${KODI_ALSA_SUPPORT}" = "yes" ]; then
|
||||
KODI_AE_SINK="ALSA+PULSE"
|
||||
elif [ "${KODI_PULSEAUDIO_SUPPORT}" = "yes" -a "${KODI_ALSA_SUPPORT}" != "yes" ]; then
|
||||
KODI_AE_SINK="PULSE"
|
||||
elif [ "${KODI_PULSEAUDIO_SUPPORT}" != "yes" -a "${KODI_ALSA_SUPPORT}" = "yes" ]; then
|
||||
KODI_AE_SINK="ALSA"
|
||||
fi
|
||||
|
||||
# adjust audio output device to what was built
|
||||
sed "s/@KODI_AE_SINK@/${KODI_AE_SINK}/" ${PKG_DIR}/config/kodi.conf.in > ${INSTALL}/usr/lib/kodi/kodi.conf
|
||||
|
||||
# set default display environment
|
||||
if [ "${DISPLAYSERVER}" = "x11" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user