You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jellyfin/MediaBrowser.Model/MediaInfo/AudioCodec.cs

33 lines
827 B

#pragma warning disable CS1591
#pragma warning disable SA1600
namespace MediaBrowser.Model.MediaInfo
6 years ago
{
public static class AudioCodec
6 years ago
{
public const string AAC = "aac";
public const string MP3 = "mp3";
public const string AC3 = "ac3";
public static string GetFriendlyName(string codec)
{
if (string.IsNullOrEmpty(codec))
{
return string.Empty;
}
6 years ago
switch (codec.ToLowerInvariant())
6 years ago
{
case "ac3":
return "Dolby Digital";
case "eac3":
return "Dolby Digital+";
case "dca":
return "DTS";
default:
return codec.ToUpperInvariant();
6 years ago
}
}
}
}