Apply audio boost when downmixing regardless of downmixalgo

This is what I'd expect from the naming
Should fix #11771
pull/11774/head
Bond_009 5 months ago
parent d608f1e3cc
commit cf04e1d8e5

@ -2641,10 +2641,14 @@ namespace MediaBrowser.Controller.MediaEncoding
&& state.AudioStream.Channels.HasValue && state.AudioStream.Channels.HasValue
&& state.AudioStream.Channels.Value == 6) && state.AudioStream.Channels.Value == 6)
{ {
if (!encodingOptions.DownMixAudioBoost.Equals(1))
{
filters.Add("volume=" + encodingOptions.DownMixAudioBoost.ToString(CultureInfo.InvariantCulture));
}
switch (encodingOptions.DownMixStereoAlgorithm) switch (encodingOptions.DownMixStereoAlgorithm)
{ {
case DownMixStereoAlgorithms.Dave750: case DownMixStereoAlgorithms.Dave750:
filters.Add("volume=4.25");
filters.Add("pan=stereo|c0=0.5*c2+0.707*c0+0.707*c4+0.5*c3|c1=0.5*c2+0.707*c1+0.707*c5+0.5*c3"); filters.Add("pan=stereo|c0=0.5*c2+0.707*c0+0.707*c4+0.5*c3|c1=0.5*c2+0.707*c1+0.707*c5+0.5*c3");
break; break;
case DownMixStereoAlgorithms.NightmodeDialogue: case DownMixStereoAlgorithms.NightmodeDialogue:
@ -2652,11 +2656,6 @@ namespace MediaBrowser.Controller.MediaEncoding
break; break;
case DownMixStereoAlgorithms.None: case DownMixStereoAlgorithms.None:
default: default:
if (!encodingOptions.DownMixAudioBoost.Equals(1))
{
filters.Add("volume=" + encodingOptions.DownMixAudioBoost.ToString(CultureInfo.InvariantCulture));
}
break; break;
} }
} }

Loading…
Cancel
Save