/* * WaveFileFormat ReadMainFileHeader - 2004 July 28 * Read in the main file header. Not much more to say, really. * For XML serialization purposes, I "correct" the dwFileLength * field to describe the whole file's length. */ public riffChunk ReadMainFileHeader() { mainfile = new riffChunk(); mainfile.ChunkID = new string(reader.ReadChars(4)); mainfile.ChunkSize = reader.ReadUInt32(); mainfile.Format = new string(reader.ReadChars(4)); return(mainfile); }
/* * WaveFileFormat ReadMainFileHeader - 2004 July 28 * Read in the main file header. Not much more to say, really. * For XML serialization purposes, I "correct" the dwFileLength * field to describe the whole file's length. */ public riffChunk ReadMainFileHeader() { mainfile = new riffChunk(); mainfile.ChunkID = new string(reader.ReadChars(4)); mainfile.ChunkSize = reader.ReadUInt32(); mainfile.Format = new string(reader.ReadChars(4)); return mainfile; }