Пример #1
0
        /// <summary>
        /// Reads in a WaveFormat (with extra data) from a fmt chunk (chunk identifier and
        /// length should already have been read)
        /// </summary>
        /// <param name="br">Binary reader</param>
        /// <param name="formatChunkLength">Format chunk length</param>
        /// <returns>A WaveFormatExtraData</returns>
        public static WaveFormat FromFormatChunk(BinaryReader br, int formatChunkLength)
        {
            var waveFormat = new WaveFormatExtraData();

            waveFormat.ReadWaveFormat(br, formatChunkLength);
            waveFormat.ReadExtraData(br);
            return(waveFormat);
        }
Пример #2
0
		/// <summary>
		/// Reads in a WaveFormat (with extra data) from a fmt chunk (chunk identifier and
		/// length should already have been read)
		/// </summary>
		/// <param name="br">Binary reader</param>
		/// <param name="formatChunkLength">Format chunk length</param>
		/// <returns>A WaveFormatExtraData</returns>
		public static WaveFormat FromFormatChunk(BinaryReader br, int formatChunkLength)
		{
			var waveFormat = new WaveFormatExtraData();
			waveFormat.ReadWaveFormat(br, formatChunkLength);
			waveFormat.ReadExtraData(br);
			return waveFormat;
		}