public static IList<ushort> GetAvailableSamplingFrequencies(Mp3Type mp3Types) { var output = new List<ushort> {0}; if (mp3Types.Contains(Mp3Type.Mpeg10)) { output.AddRange(Mpeg10.SamplingFrequencies); } if (mp3Types.Contains(Mp3Type.Mpeg20)) { output.AddRange(Mpeg20.SamplingFrequencies); } if (mp3Types.Contains(Mp3Type.Mpeg25)) { output.AddRange(Mpeg25.SamplingFrequencies); } return output; }
public static IList<ushort> GetAvailableBitrates(Mp3Type mp3Types) { var output = new HashSet<ushort>(); if (mp3Types.Contains(Mp3Type.Mpeg10)) { output.UnionWith(Mpeg10.Bitrates); } if (mp3Types.Contains(Mp3Type.Mpeg20)) { output.UnionWith(Mpeg20.Bitrates); } if (mp3Types.Contains(Mp3Type.Mpeg25)) { output.UnionWith(Mpeg25.Bitrates); } var tmp = new List<ushort>(output); return tmp.OrderByDescending(x => x).ToList(); }
public static IList <ushort> GetAvailableSamplingFrequencies(Mp3Type mp3Types) { var output = new List <ushort> { 0 }; if (mp3Types.Contains(Mp3Type.Mpeg10)) { output.AddRange(Mpeg10.SamplingFrequencies); } if (mp3Types.Contains(Mp3Type.Mpeg20)) { output.AddRange(Mpeg20.SamplingFrequencies); } if (mp3Types.Contains(Mp3Type.Mpeg25)) { output.AddRange(Mpeg25.SamplingFrequencies); } return(output); }
public static IList <ushort> GetAvailableBitrates(Mp3Type mp3Types) { var output = new HashSet <ushort>(); if (mp3Types.Contains(Mp3Type.Mpeg10)) { output.UnionWith(Mpeg10.Bitrates); } if (mp3Types.Contains(Mp3Type.Mpeg20)) { output.UnionWith(Mpeg20.Bitrates); } if (mp3Types.Contains(Mp3Type.Mpeg25)) { output.UnionWith(Mpeg25.Bitrates); } var tmp = new List <ushort>(output); return(tmp.OrderByDescending(x => x).ToList()); }