Exemple #1
0
        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;
        }
Exemple #2
0
        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();
        }
Exemple #3
0
        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);
        }
Exemple #4
0
        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());
        }