Пример #1
0
        /// <summary>
        /// The populate audio streams.
        /// </summary>
        /// <param name="result">
        /// The result.
        /// </param>
        private void PopulateAudioStreams(XmlNode result)
        {
            var audioStream = new MiAudioStreamModel();

            foreach (XmlNode xmlNode in result.ChildNodes)
            {
                switch (xmlNode.Name)
                {
                case "ID":
                    audioStream.ID = xmlNode.InnerText.ToInt();
                    break;

                case "Format":
                    audioStream.Format = xmlNode.InnerText;
                    break;

                case "Format_Info":
                    audioStream.FormatInfo = xmlNode.InnerText;
                    break;

                case "Mode_extension":
                    audioStream.FormatSEttingsModeExtension = xmlNode.InnerText;
                    break;

                case "Codec_ID":
                    audioStream.CodecID = xmlNode.InnerText;
                    break;

                case "Duration":
                    audioStream.Duration = xmlNode.InnerText;
                    break;

                case "Bit_rate_mode":
                    audioStream.BitRateMode = xmlNode.InnerText;
                    break;

                case "Bit_rate":
                    audioStream.Bitrate = xmlNode.InnerText;
                    break;

                case "Channel_s_":
                    audioStream.Channels = xmlNode.InnerText;
                    break;

                case "Channel_positions":
                    audioStream.ChannelPositions = xmlNode.InnerText;
                    break;

                case "Sampling_rate":
                    audioStream.SamplingRate = xmlNode.InnerText;
                    break;

                case "Bit_depth":
                    audioStream.BitDepth = xmlNode.InnerText;
                    break;

                case "Compression_mode":
                    audioStream.CompressionMode = xmlNode.InnerText;
                    break;

                case "Stream_size":
                    audioStream.StreamSize = xmlNode.InnerText;
                    break;
                }
            }

            this.AudioStreams.Add(audioStream);
        }
Пример #2
0
        /// <summary>
        /// The populate audio streams.
        /// </summary>
        /// <param name="result">
        /// The result.
        /// </param>
        private void PopulateAudioStreams(XmlNode result)
        {
            var audioStream = new MiAudioStreamModel();

            foreach (XmlNode xmlNode in result.ChildNodes)
            {
                switch (xmlNode.Name)
                {
                    case "ID":
                        audioStream.ID = xmlNode.InnerText.ToInt();
                        break;

                    case "Format":
                        audioStream.Format = xmlNode.InnerText;
                        break;

                    case "Format_Info":
                        audioStream.FormatInfo = xmlNode.InnerText;
                        break;

                    case "Mode_extension":
                        audioStream.FormatSEttingsModeExtension = xmlNode.InnerText;
                        break;

                    case "Codec_ID":
                        audioStream.CodecID = xmlNode.InnerText;
                        break;

                    case "Duration":
                        audioStream.Duration = xmlNode.InnerText;
                        break;

                    case "Bit_rate_mode":
                        audioStream.BitRateMode = xmlNode.InnerText;
                        break;

                    case "Bit_rate":
                        audioStream.Bitrate = xmlNode.InnerText;
                        break;

                    case "Channel_s_":
                        audioStream.Channels = xmlNode.InnerText;
                        break;

                    case "Channel_positions":
                        audioStream.ChannelPositions = xmlNode.InnerText;
                        break;

                    case "Sampling_rate":
                        audioStream.SamplingRate = xmlNode.InnerText;
                        break;

                    case "Bit_depth":
                        audioStream.BitDepth = xmlNode.InnerText;
                        break;

                    case "Compression_mode":
                        audioStream.CompressionMode = xmlNode.InnerText;
                        break;

                    case "Stream_size":
                        audioStream.StreamSize = xmlNode.InnerText;
                        break;
                }
            }

            this.AudioStreams.Add(audioStream);
        }