The source project of this merge request has been removed.
requested to merge lord.jacold/gst-plugins-bad.bak:fix-wasapi-channel-mapping into master
Mapping WASAPI channel mask to GST equivalent was going only over first nChannels elements of wasapi_to_gst_pos array, translating, for example, WASAPI's 0x63f to GST's 0x3f instead of 0xc3f.
When 'channel-mask' capability of value 0x0 is specified and there's need to do downmix or upmix it makes caps negotiation with audioconvert element impossible. That is, when mix-matrix is not specified audioconvert doesn't know what mix to do and if the mix-matrix is specified audioconvert replaces invalid 0x0 channel mask with default one making caps negotiation impossible.