Last active
February 1, 2024 17:36
-
-
Save MatiasVara/c69a70a1547ecea0044ece43e4ab9e41 to your computer and use it in GitHub Desktop.
This script has been borrowed from https://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/Performance#playback-441khz-audio-device-441khz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in 1000 200 120 50 20 10 2; | |
do | |
paplay --latency-ms=$i 44100_s16_2chan_file.wav & | |
PID=$! | |
sleep 1 | |
echo "Latency $i 44100 server:" | |
sudo perf stat -p `pidof pipewire-uninstalled` --timeout 5000 | |
echo "latency $i 44100 client:" | |
sudo perf stat -p $PID --timeout 5000 | |
kill -9 $PID | |
sleep 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment