jellyfin/MediaBrowser.Model/MediaInfo/AudioCodec.cs

32 lines
779 B
C#

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