Skip to content

Commit bd1cecb

Browse files
kleinesfilmroellchengmta
authored andcommitted
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.
1 parent 6cf8eeb commit bd1cecb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Meta/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ fi
164164
if [ "$(uname)" = "Darwin" ]; then
165165
SERENITY_AUDIO_BACKEND="-audiodev coreaudio,id=snd0"
166166
elif [ "$NATIVE_WINDOWS_QEMU" -eq "1" ]; then
167-
SERENITY_AUDIO_BACKEND="-audiodev dsound,id=snd0"
167+
SERENITY_AUDIO_BACKEND="-audiodev dsound,id=snd0,timer-period=2000"
168168
elif "$SERENITY_QEMU_BIN" -audio-help 2>&1 | grep -- "-audiodev id=sdl" >/dev/null; then
169169
SERENITY_AUDIO_BACKEND="-audiodev sdl,id=snd0"
170170
else

0 commit comments

Comments
 (0)