예제 #1
0
        public SWAV(byte[] file)
        {
            EndianBinaryReader er = new EndianBinaryReader((Stream) new MemoryStream(file), Endianness.LittleEndian);
            bool OK;

            this.Header = new FileHeader.HeaderInfo(er, nameof(SWAV), out OK);
            if (!OK)
            {
                int num1 = (int)MessageBox.Show("Error 1");
            }
            else
            {
                this.Data = new SWAV.DataSection(er, out OK);
                if (!OK)
                {
                    int num2 = (int)MessageBox.Show("Error 2");
                }
            }
            er.Close();
        }
예제 #2
0
 public SWAV(SWAV.SWAVInfo Info, byte[] Data)
 {
     this.Data = new SWAV.DataSection(Info, Data);
 }