Replace existing 2.1/4.0/4.1/7.1 downmix code | Some fixes in TextOutputSource

Based on the same principles as 5.1 downmix.

... (read the comments)