Merge pull request #2118 from fewtarius/dev

Try and reduce bluetooth audio latency, add start scripts to tools for a few emulators.
This commit is contained in:
fewtarius 2023-09-21 22:19:53 -04:00 committed by GitHub
commit 58415ca931
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 88 additions and 10 deletions

View file

@ -5,6 +5,6 @@
source /etc/profile
jslisten set "killall installer"
jslisten set "installer"
weston-terminal -f --command "/usr/bin/installer"

View file

@ -5,6 +5,6 @@
source /etc/profile
jslisten set "killall retroarch32"
jslisten set "retroarch32"
export LIBGL_DRIVERS_PATH="/usr/lib32/dri"
/usr/bin/retroarch32 --appendconfig /usr/config/retroarch/retroarch32bit-append.cfg

View file

@ -5,6 +5,6 @@
source /etc/profile
jslisten set "killall retroarch"
jslisten set "retroarch"
/usr/bin/retroarch --appendconfig /usr/config/retroarch/retroarch64bit-append.cfg

View file

@ -0,0 +1,10 @@
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2020-present Fewtarius
source /etc/profile
jslisten set "cemu"
/usr/bin/cemu >/dev/null 2>&1

View file

@ -0,0 +1,10 @@
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2020-present Fewtarius
source /etc/profile
jslisten set "hatarisa"
/usr/bin/hatarisa >/dev/null 2>&1

View file

@ -0,0 +1,10 @@
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2020-present Fewtarius
source /etc/profile
jslisten set "pcsx2-sa"
/usr/bin/pcsx2-sa >/dev/null 2>&1

View file

@ -5,7 +5,7 @@
source /etc/profile
jslisten set "killall ppsspp"
jslisten set "ppsspp"
cp -f /storage/.config/SDL-GameControllerDB/gamecontrollerdb.txt /storage/.config/ppsspp/assets/gamecontrollerdb.txt

View file

@ -0,0 +1,10 @@
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2020-present Fewtarius
source /etc/profile
jslisten set "rpcs3"
/usr/bin/rpcs3 >/dev/null 2>&1

View file

@ -5,6 +5,6 @@
source /etc/profile
jslisten set "killall scummvm"
jslisten set "scummvm"
/usr/bin/start_scummvm.sh sa

View file

@ -0,0 +1,10 @@
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2020-present Fewtarius
source /etc/profile
jslisten set "xemu-sa"
/usr/bin/xemu-sa >/dev/null 2>&1

View file

@ -0,0 +1,10 @@
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2020-present Fewtarius
source /etc/profile
jslisten set "yuzu"
/usr/bin/yuzu >/dev/null 2>&1

View file

@ -5,6 +5,6 @@
# Copyright (C) 2020-present Fewtarius
. /etc/profile
jslisten set "killall FileMan"
jslisten set "FileMan"
fileman

View file

@ -16,10 +16,28 @@ do
if [ -z "${CONNECTED}" ]
then
/usr/bin/bluetoothctl --timeout 5 connect ${DEVICE} >/dev/null 2>&1
if [ "$?" = "0" ]
then
volume $(get_setting "audio.volume")
fi
sleep .5
COUNT=0
while true
do
COUNT=$(( COUNT + 1))
CONNECTED=$(/usr/bin/bluetoothctl devices Connected 2>&1 | grep ${DEVICE} 2>/dev/null)
if [ -n "${CONNECTED}" ]
then
ISAUDIO=$(bluetoothctl info ${DEVICE} | awk '/UUID: Audio/ {print $2}')
if [ -n "${ISAUDIO}" ]
then
volume $(get_setting "audio.volume")
pactl set-port-latency-offset $(pactl list cards short | grep -E -o bluez.*[[:space:]]) headset-output 100000
fi
break
fi
if [ "${COUNT}" = 10 ]
then
break
fi
sleep .5
done
fi
sleep .5
done