jellyfin/MediaBrowser.Model/MediaInfo/AudioCodec.cs

26 lines
687 B
C#
Raw Normal View History

namespace MediaBrowser.Model.MediaInfo
{
public class AudioCodec
{
2014-05-12 11:04:25 -07:00
public const string AAC = "aac";
public const string MP3 = "mp3";
public const string AC3 = "ac3";
2016-05-18 14:46:56 -07:00
public static string GetFriendlyName(string codec)
{
if (string.IsNullOrEmpty(codec)) return "";
switch (codec.ToLower())
{
case "ac3":
return "Dolby Digital";
case "eac3":
return "Dolby Digital+";
case "dca":
return "DTS";
default:
return codec.ToUpper();
}
}
}
}