🐛 Move QEMU to dsound playback past the write cursor

On a Windows host, an x86-64 macOS guest's sound clicked 111 times a
minute at rest and 172 times busy, measured from the host's output with
WASAPI loopback while the guest played a steady tone. QEMU's dsound
backend wrote the guest's audio behind DirectSound's write cursor,
whenever the guest's periods came late enough to leave the buffer under
~31 ms ahead of the play cursor. DirectSound had already mixed that part
of the buffer, so it played the audio from one turn of the buffer
earlier.

QEMU's dsound voice now writes only past the write cursor, with half its
buffer in reserve. The output buffer's default is now 185.76 ms, so the
reserve is 92.88 ms. reims-ctl's -audiodev is unchanged.
This commit is contained in:
Anees Iqbal committed 2026-11-24 02:00:50 -08:00
1 parent 4b4a221074
commit 01dc355d74
1 file changed
+1 -1
Vendored
+1 -1
Submodule vendor/qemu updated: 0c91b471fd...0c0ac35698.