Hi I'm trying to capture audio (using portaudio) and send and receive UDP packets.
I'm trying to work out how to integrate with the libuv loop from the soundcard callback.
*If I send using libuv directly from the loop - it occasionally crashes (perhaps expected)
* I could write into a buffer and have a libuv timer process this - but I'd get wasted latency.
* perhaps I can write into a buffer and direct libuv to wake up. I did try using uv_async, but it seemed to be too slow.
What is the correct thing to do here?