Add RFC7845 downmix algorithm (#12300)

This commit is contained in:
gnattu
2024-07-30 23:50:22 +08:00
committed by GitHub
parent f7ab17d24d
commit 0a1a109b2e
4 changed files with 83 additions and 21 deletions

View File

@@ -1733,7 +1733,7 @@ public class DynamicHlsController : BaseJellyfinApiController
var channels = state.OutputAudioChannels;
var useDownMixAlgorithm = state.AudioStream.Channels is 6 && _encodingOptions.DownMixStereoAlgorithm != DownMixStereoAlgorithms.None;
var useDownMixAlgorithm = DownMixAlgorithmsHelper.AlgorithmFilterStrings.ContainsKey((_encodingOptions.DownMixStereoAlgorithm, DownMixAlgorithmsHelper.InferChannelLayout(state.AudioStream)));
if (channels.HasValue
&& (channels.Value != 2