コード例 #1
0
ファイル: WaveFormat.cs プロジェクト: EnergonV/BestCS
        /// <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
ファイル: WaveFormat.cs プロジェクト: EnergonV/BestCS
 /// <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;
 }