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:
commit
58415ca931
13 changed files with 88 additions and 10 deletions
|
@ -5,6 +5,6 @@
|
|||
|
||||
source /etc/profile
|
||||
|
||||
jslisten set "killall installer"
|
||||
jslisten set "installer"
|
||||
|
||||
weston-terminal -f --command "/usr/bin/installer"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -5,6 +5,6 @@
|
|||
|
||||
source /etc/profile
|
||||
|
||||
jslisten set "killall retroarch"
|
||||
jslisten set "retroarch"
|
||||
|
||||
/usr/bin/retroarch --appendconfig /usr/config/retroarch/retroarch64bit-append.cfg
|
||||
|
|
10
packages/misc/modules/sources/Start CEMU.sh
Executable file
10
packages/misc/modules/sources/Start CEMU.sh
Executable 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
|
10
packages/misc/modules/sources/Start HATARISA.sh
Executable file
10
packages/misc/modules/sources/Start HATARISA.sh
Executable 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
|
10
packages/misc/modules/sources/Start PCSX2.sh
Executable file
10
packages/misc/modules/sources/Start PCSX2.sh
Executable 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
|
|
@ -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
|
||||
|
||||
|
|
10
packages/misc/modules/sources/Start RPCS3.sh
Executable file
10
packages/misc/modules/sources/Start RPCS3.sh
Executable 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
|
|
@ -5,6 +5,6 @@
|
|||
|
||||
source /etc/profile
|
||||
|
||||
jslisten set "killall scummvm"
|
||||
jslisten set "scummvm"
|
||||
|
||||
/usr/bin/start_scummvm.sh sa
|
||||
|
|
10
packages/misc/modules/sources/Start Xemu.sh
Executable file
10
packages/misc/modules/sources/Start Xemu.sh
Executable 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
|
10
packages/misc/modules/sources/Start Yuzu.sh
Executable file
10
packages/misc/modules/sources/Start Yuzu.sh
Executable 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
|
|
@ -5,6 +5,6 @@
|
|||
# Copyright (C) 2020-present Fewtarius
|
||||
|
||||
. /etc/profile
|
||||
jslisten set "killall FileMan"
|
||||
jslisten set "FileMan"
|
||||
|
||||
fileman
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue