From 9131ff2029b5699641a272a95a97ac53d1d319ec Mon Sep 17 00:00:00 2001 From: David Reid Date: Sun, 8 Apr 2018 09:41:15 +1000 Subject: [PATCH] Have mal_convert_frames() use the default channel map. --- mini_al.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mini_al.h b/mini_al.h index 37bfbe2e..446f9a1d 100644 --- a/mini_al.h +++ b/mini_al.h @@ -18498,9 +18498,11 @@ mal_uint64 mal_convert_frames(void* pOut, mal_format formatOut, mal_uint32 chann config.formatIn = formatIn; config.channelsIn = channelsIn; config.sampleRateIn = sampleRateIn; + mal_get_standard_channel_map(mal_standard_channel_map_default, config.channelsIn, config.channelMapIn); config.formatOut = formatOut; config.channelsOut = channelsOut; config.sampleRateOut = sampleRateOut; + mal_get_standard_channel_map(mal_standard_channel_map_default, config.channelsOut, config.channelMapOut); config.onRead = mal_convert_frames__on_read; config.pUserData = &data;