mirror of https://github.com/bjornbytes/lovr.git
Fix sample conversion when only channel count conversion is required;
This commit is contained in:
parent
9c1af7427f
commit
26d009aada
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue