Default to E-AC-3 spatial audio format.

This commit is contained in:
Michael Bucari-Tovo 2025-05-09 13:39:59 -06:00
parent 20e792c589
commit 9366b3baca

View File

@ -51,12 +51,7 @@ public partial class DownloadOptions
try try
{ {
//try to request a widevine content license using the user's spatial audio settings //try to request a widevine content license using the user's spatial audio settings
var codecChoice = config.SpatialAudioCodec switch var codecChoice = config.SpatialAudioCodec is Configuration.SpatialCodec.AC_4 ? Ac4Codec : Ec3Codec;
{
Configuration.SpatialCodec.EC_3 => Ec3Codec,
Configuration.SpatialCodec.AC_4 => Ac4Codec,
_ => throw new NotSupportedException($"Unknown value for {nameof(config.SpatialAudioCodec)}")
};
var contentLic var contentLic
= await api.GetDownloadLicenseAsync( = await api.GetDownloadLicenseAsync(