From bd1cecb991247e00d13bc8fc970f3abe6517ab1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?kleines=20Filmr=C3=B6llchen?= Date: Sun, 26 Feb 2023 13:35:27 +0100 Subject: [PATCH] Meta: Lower QEMU DirectSound driver timer period to 2ms 10ms (the default) is ridiculous and causes all kinds of glitches if we actually want to have a low-latency queue. suggests 2ms (and no lower than 1ms). This improves audio glitch resistance at our current 512 sample buffer size, but going lower is still not possible. --- Meta/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Meta/run.sh b/Meta/run.sh index b48e1d4e37..78795b0ff0 100755 --- a/Meta/run.sh +++ b/Meta/run.sh @@ -164,7 +164,7 @@ fi if [ "$(uname)" = "Darwin" ]; then SERENITY_AUDIO_BACKEND="-audiodev coreaudio,id=snd0" elif [ "$NATIVE_WINDOWS_QEMU" -eq "1" ]; then - SERENITY_AUDIO_BACKEND="-audiodev dsound,id=snd0" + SERENITY_AUDIO_BACKEND="-audiodev dsound,id=snd0,timer-period=2000" elif "$SERENITY_QEMU_BIN" -audio-help 2>&1 | grep -- "-audiodev id=sdl" >/dev/null; then SERENITY_AUDIO_BACKEND="-audiodev sdl,id=snd0" else