There is a potential bug in the channel converter for ma_channel_mix_mode_rectangular
We are using miniaudio 11.4 for Windows platform since newer versions after the refactor of WASAPI dataloop has resulted in choppy audio for several bluetooth devices.
On a PC with 4 internal microphones, when we open the capture device with 2 channels, the data callback gives us garbage or silent audio. This problem is also replicable for USB microphone array such as Respeaker or MiniDSP. We changed the channel mixed mode to ma_channel_mix_mode_simple and the problem disappeared. So, I suppose there is potentially a bug in channel converter with rectangular mode.
Oh, I think my issue is related to this https://github.com/mackron/miniaudio/issues/233
Thanks for the report and sorry for the lack of response. I believe this issue might be related to https://github.com/mackron/miniaudio/issues/480 which has a fix in the dev branch. Hopefully that'll fix this problem.