Context:
I want to record audio not from microphone but from speaker, on Windows. WASAPI allows it.
Didnt look much into your work which seems great yet
Why do you need WASAPI loopback for this? See https://github.com/gen2brain/malgo/issues/40 and send a PR if you can. But, you should be able to enumerate devices and choose the capture device you want.
https://github.com/s0d3s/PyAudioWPatch
referring to this work in python
Context: I want to record audio not from microphone but from speaker, on Windows. WASAPI allows it. Didnt look much into your work which seems great yet