918fc6d6c2
A mono source is currently upmixed by swresampler in the following way: - for stereo output, FL=FR=input/sqrt(2) - for other speaker layouts of the outputs, FC=input, other channels are zeroed. In the case of stereo output, this leads to a 3dB level decrease which users have issue with [1]. The obvious fix of adding a 3dB gain is reported to be adding distortions on some setups [2]. Note that the "Downmix to Mono" does not fix this upmix problem, since it just makes all output channels identical by summing all input channels and normalizing (by dividing by the number of output channels). This last normalization step results in a level reduction for a mono input. [1] This fixes https://obsproject.com/mantis/view.php?id=960. [2] See also: https://obsproject.com/forum/threads/please-allow-for-mono-recording-of-microphones-ill-explain-why.84834