瀏覽代碼

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.
<https://gitlab.com/qemu-project/qemu/-/issues/1076#note_996636777>
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.
kleines Filmröllchen 2 年之前
父節點
當前提交
bd1cecb991
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Meta/run.sh

+ 1 - 1
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