From 9366b3baca08438563b75ab92db0cb0b1afe9462 Mon Sep 17 00:00:00 2001 From: Michael Bucari-Tovo Date: Fri, 9 May 2025 13:39:59 -0600 Subject: [PATCH] Default to E-AC-3 spatial audio format. --- Source/FileLiberator/DownloadOptions.Factory.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Source/FileLiberator/DownloadOptions.Factory.cs b/Source/FileLiberator/DownloadOptions.Factory.cs index bbd05089..d01d9993 100644 --- a/Source/FileLiberator/DownloadOptions.Factory.cs +++ b/Source/FileLiberator/DownloadOptions.Factory.cs @@ -51,12 +51,7 @@ public partial class DownloadOptions try { //try to request a widevine content license using the user's spatial audio settings - var codecChoice = config.SpatialAudioCodec switch - { - Configuration.SpatialCodec.EC_3 => Ec3Codec, - Configuration.SpatialCodec.AC_4 => Ac4Codec, - _ => throw new NotSupportedException($"Unknown value for {nameof(config.SpatialAudioCodec)}") - }; + var codecChoice = config.SpatialAudioCodec is Configuration.SpatialCodec.AC_4 ? Ac4Codec : Ec3Codec; var contentLic = await api.GetDownloadLicenseAsync(