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:
parent
e307f5a75c
commit
855a0d121a
11
run.sh
11
run.sh
|
@ -1,15 +1,4 @@
|
||||||
#!/usr/bin/env bash
|
#!/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))"
|
BASEDIR="$(dirname $(realpath -s $0))"
|
||||||
|
|
||||||
mkdir -p "$HOME/.local/share/osu" "$BASEDIR/import"
|
mkdir -p "$HOME/.local/share/osu" "$BASEDIR/import"
|
||||||
|
|
Loading…
Reference in a new issue