FMT fmt=new FMT(); public void ReadFmtHeader() { fmt.s_Sub_Chunk_ID_1 = reader.ReadBytes(4); fmt.ui_Sub_Chunk_Size_ID_1 = reader.ReadBytes(4); fmt.us_Audio_Format = reader.ReadBytes(2); fmt.us_Num_Channels = reader.ReadBytes(2); fmt.ui_Sample_Rate = reader.ReadBytes(4); fmt.ui_Byte_Rate = reader.ReadBytes(4); fmt.us_Block_Align = reader.ReadBytes(2); fmt.us_Bits_Per_Sample = reader.ReadBytes(2); if (Convert.ToInt32(fmt.ui_Sub_Chunk_Size_ID_1) == 18)
I am trying to read a wave file and then recreate it using header information and saving to a file. I do not know what's the problem. Can someone help me with this?
source share