A recording made while an output played got nothing. On reims-ctl's one
virtio sound device of an output and an input stream, the guest starts the
input with each output and soon stops posting receive buffers, so a
recording that joins a playing output gets none, and QEMU has nowhere to put
the host's input. AppleVirtIOSound's HAL plug-in makes one Core Audio device
of each virtio-snd device and starts all of its streams together, posting
an input's receive buffers only at its start and as each completes while
its ring has room (read from its code). On a device started for an output,
nothing reads that ring.
reims-ctl now gives every VM a playback-only device at 0x7 (streams=1) and a
capture-only one at 0x8 (streams=1,input-streams=1, vendor/qemu 1422502b),
beside the HDA controller as before.
What the guest sees: two "Apple Virtual Sound Device"s, the default output
and the default input, where one device was both. Measured on a macOS
26.7.2 guest on homelab-um790's Radeon 780M, one cold boot each way (job
m3-max-24761, docs/qemu.md "x86-64 macOS guests: audio"). With the two
devices, a 10 s recording 20 s into a 50 s play got 117 receive buffers and
the host source's live audio in each second. On the one device the same
recording got no buffer, 2 s of older samples and 8 s of zeros. An output
alone no longer starts the input, and the host's source stays suspended
through it. A QEMU built before 1422502b refuses input-streams, so this
reims-ctl needs the QEMU its installer builds (install-ctl.sh without
--skip-qemu, whose warning names a changed QEMU).