Fix sample conversion when only channel count conversion is required;

This commit is contained in:
bjorn 2021-02-19 12:35:52 -07:00
parent 9c1af7427f
commit 26d009aada
1 changed files with 1 additions and 1 deletions

View File

@ -346,7 +346,7 @@ Source* lovrSourceCreate(Sound* sound, bool spatial) {
source->converter = ~0u;
if (config.formatIn != config.formatOut || config.channelsIn == config.channelsOut || config.sampleRateIn != config.sampleRateOut) {
if (config.formatIn != config.formatOut || config.channelsIn != config.channelsOut || config.sampleRateIn != config.sampleRateOut) {
for (size_t i = 0; i < state.converters.length; i++) {
ma_data_converter* converter = &state.converters.data[i];
if (converter->config.formatIn != config.formatIn) continue;