Beispiel #1
0
        public bool Open(string fullname)
        {
            bool result = true;

            try
            {
                result = File.Exists(fullname);
                if (result == true)
                {
                    this.m_File = new FileStream(fullname, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
                    //byte[] buf = new byte[4];
                    //int read_len = this.m_File.Read(buf, 0, buf.Length);
                    //this.m_Header.ID = Encoding.UTF8.GetString(buf, 0, read_len);
                    //string str = Encoding.UTF8.GetString(buf, 0, read_len);
                    //read_len = this.m_File.Read(buf, 0, buf.Length);
                    //this.m_Header.Size = BitConverter.ToInt32(buf, 0);
                    //read_len = this.m_File.Read(buf, 0, buf.Length);
                    //this.m_Header.Format = Encoding.UTF8.GetString(buf, 0, read_len);
                    CQRiff_Chunk chunk = this.ReadNextRiff();
                }
            }
            catch (Exception ee)
            {
                System.Diagnostics.Trace.WriteLine(ee.Message);
                System.Diagnostics.Trace.WriteLine(ee.StackTrace);
            }
            return(result);
        }
Beispiel #2
0
 public CQRiff_Chunk(CQRiff_Chunk data)
 {
     this.ID   = data.ID;
     this.Size = data.Size;
 }
Beispiel #3
0
 public CQRiff_Header(CQRiff_Chunk data)
     : base(data)
 {
     this.Chunks = new List <CQRiff_Chunk>();
 }