Fix a bug with channel map retrieval with the channel converter.

This had the input and output channel maps the wrong way around.
This commit is contained in:
David Reid
2026-02-04 12:45:20 +10:00
parent cb26c7ec52
commit 9b66a480c7
+2 -2
View File
@@ -62902,7 +62902,7 @@ MA_API ma_result ma_data_converter_get_input_channel_map(const ma_data_converter
} }
if (pConverter->hasChannelConverter) { if (pConverter->hasChannelConverter) {
ma_channel_converter_get_output_channel_map(&pConverter->channelConverter, pChannelMap, channelMapCap); ma_channel_converter_get_input_channel_map(&pConverter->channelConverter, pChannelMap, channelMapCap);
} else { } else {
ma_channel_map_init_standard(ma_standard_channel_map_default, pChannelMap, channelMapCap, pConverter->channelsOut); ma_channel_map_init_standard(ma_standard_channel_map_default, pChannelMap, channelMapCap, pConverter->channelsOut);
} }
@@ -62917,7 +62917,7 @@ MA_API ma_result ma_data_converter_get_output_channel_map(const ma_data_converte
} }
if (pConverter->hasChannelConverter) { if (pConverter->hasChannelConverter) {
ma_channel_converter_get_input_channel_map(&pConverter->channelConverter, pChannelMap, channelMapCap); ma_channel_converter_get_output_channel_map(&pConverter->channelConverter, pChannelMap, channelMapCap);
} else { } else {
ma_channel_map_init_standard(ma_standard_channel_map_default, pChannelMap, channelMapCap, pConverter->channelsIn); ma_channel_map_init_standard(ma_standard_channel_map_default, pChannelMap, channelMapCap, pConverter->channelsIn);
} }