I removed the /WX compile flag for MSVC debug builds as it turns warnings into errors and there are many warnings, making it impossible to compile with MSVC...
Also in the WASAPI backend, IAudioCaptureClient::ReleaseBuffer expects the whole buffer to be released or nothing. This fix keeps the buffer open until all frames have been read.
This might not be great in some cases, but when I tried closing it with 0 as size, opening it again would sometimes fail.
I removed the /WX compile flag for MSVC debug builds as it turns warnings into errors and there are many warnings, making it impossible to compile with MSVC...
Also in the WASAPI backend, IAudioCaptureClient::ReleaseBuffer expects the whole buffer to be released or nothing. This fix keeps the buffer open until all frames have been read. This might not be great in some cases, but when I tried closing it with 0 as size, opening it again would sometimes fail.