run.sh: Remove latency offset

It was hardcoded to nunotaba and should rather be set outside of the
script (and with other methods).
This commit is contained in:
Simon Bruder 2024-05-09 02:25:16 +02:00
parent e307f5a75c
commit 855a0d121a
Signed by: simon
GPG key ID: 347FF8699CDA0776

11
run.sh
View file

@ -1,15 +1,4 @@
#!/usr/bin/env bash
function set_latency_offset() {
if [ $# != 1 ]; then
return 1
fi
echo "Set latency offset to $1 µs" >&2
pactl set-port-latency-offset alsa_card.pci-0000_00_1b.0 analog-output-headphones $1
}
set_latency_offset -40000
trap "set_latency_offset 0" SIGINT SIGTERM EXIT
BASEDIR="$(dirname $(realpath -s $0))"
mkdir -p "$HOME/.local/share/osu" "$BASEDIR/import"