update port latency for pipewire

This commit is contained in:
Guillaume Castagnino 2021-02-18 14:13:23 +01:00
parent 15d274227a
commit 5aaaa39460
1 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,9 @@
#!/bin/sh #!/bin/sh
latency=${1:-160000} # pulseaudio
#latency=${1:-160000}
# pipewire
latency=${1:-80000}
for bz in $(pactl list cards short | egrep -o bluez.*[[:space:]]); do for bz in $(pactl list cards short | egrep -o bluez.*[[:space:]]); do
pactl set-port-latency-offset ${bz} headset-output ${latency} pactl set-port-latency-offset ${bz} headset-output ${latency}