mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
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:
+2
-2
@@ -62902,7 +62902,7 @@ MA_API ma_result ma_data_converter_get_input_channel_map(const ma_data_converter
|
||||
}
|
||||
|
||||
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 {
|
||||
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) {
|
||||
ma_channel_converter_get_input_channel_map(&pConverter->channelConverter, pChannelMap, channelMapCap);
|
||||
ma_channel_converter_get_output_channel_map(&pConverter->channelConverter, pChannelMap, channelMapCap);
|
||||
} else {
|
||||
ma_channel_map_init_standard(ma_standard_channel_map_default, pChannelMap, channelMapCap, pConverter->channelsIn);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user