if(pConfig->channelMapIn[0]!=MAL_CHANNEL_NONE&&pConfig->channelMapOut[0]!=MAL_CHANNEL_NONE){// <-- Channel mapping will be ignored if the first channel map is MAL_CHANNEL_NONE.
// When using channel mapping we need to figure out a shuffling table. The first thing to do is convert the input channel map
// so that it contains the same number of channels as the output channel count.