Fixes voice chat in Helldivers 2 (which works though PlayFab so it is probably going to affect more games once those pick that version).
I tested the real captured sound with a separate test program, attaching that just in case (it captures the sound card output for 5 sec and writes that to sound.wav).
I tried to incorporate test_capture() into the added test and, while that works perfectly on my real Win11 machine, that fails in a weird way on Testbot on Windows machines: IAudioClient_Start() never signals event and no data come through, that's across all the machines having sound card. I am guessing something doesn't work quite right with loopback capture in VMs.
[captureoutput.c](/uploads/d6a5ea9e974f24f1b12d0265d4d361f9/captureoutput.c)