mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 00:34:03 +02:00
Fix a bug when retrieving the channel map of a data converter.
This commit is contained in:
+2
-2
@@ -47202,7 +47202,7 @@ MA_API ma_result ma_data_converter_get_input_channel_map(const ma_data_converter
|
||||
return MA_INVALID_ARGS;
|
||||
}
|
||||
|
||||
if (&pConverter->hasChannelConverter) {
|
||||
if (pConverter->hasChannelConverter) {
|
||||
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->channelsOut);
|
||||
@@ -47217,7 +47217,7 @@ MA_API ma_result ma_data_converter_get_output_channel_map(const ma_data_converte
|
||||
return MA_INVALID_ARGS;
|
||||
}
|
||||
|
||||
if (&pConverter->hasChannelConverter) {
|
||||
if (pConverter->hasChannelConverter) {
|
||||
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->channelsIn);
|
||||
|
||||
Reference in New Issue
Block a user