miniaudio icon indicating copy to clipboard operation
miniaudio copied to clipboard

There is a potential bug in the channel converter for ma_channel_mix_mode_rectangular

Open anhnht3 opened this issue 3 years ago • 1 comments

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.

anhnht3 avatar May 05 '22 07:05 anhnht3

Oh, I think my issue is related to this https://github.com/mackron/miniaudio/issues/233

anhnht3 avatar May 05 '22 10:05 anhnht3

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.

mackron avatar Aug 11 '22 08:08 mackron