mackron / miniaudio

Audio playback and capture library written in C, in a single source file.
https://miniaud.io
Other
4.07k stars 361 forks source link

fix a typo when using ma_round_to_standard_sample_rate__opensl. #382

Closed kgdev closed 2 years ago

mackron commented 2 years ago

Thanks for this. What's the reason for changing the channel mask line?

- pcm.channelMask   = SL_SPEAKER_FRONT_LEFT | SL_SPEAKER_FRONT_RIGHT;
+ pcm.channelMask   = 0;
kgdev commented 2 years ago

In one of my devices, it complains that channelMask is inconsistent with the numChannels (which is 1). numChannels is 1, so it should be mono instead of left + right? It can pass after this fix.

mackron commented 2 years ago

Thanks. You're absolutely right about that. Merging into dev.