public MP3Stream(Stream source)
 {
     source.Seek(0, SeekOrigin.Begin);
     this.source = source;
     SeekHeader();
     Frame firstframe = new Frame((Header)headerstream[0], source);
     Console.WriteLine("MDB " + firstframe.main_data_begin);
     firstframe = new Frame((Header)headerstream[1], source);
     Console.WriteLine("MDB " + firstframe.main_data_begin);
     firstframe = new Frame((Header)headerstream[2], source);
     Console.WriteLine("MDB " + firstframe.main_data_begin);
     firstframe = new Frame((Header)headerstream[3], source);
     Console.WriteLine("MDB " + firstframe.main_data_begin);
     firstframe = new Frame((Header)headerstream[4], source);
     Console.WriteLine("MDB " + firstframe.main_data_begin);
 }
 public int ReadFrame(byte[] buffer)
 {
     buffer = new byte[((Header)headerstream[currentframe]).framelength];
     Frame thisframe = new Frame((Header)headerstream[currentframe], source);
     //int read = thisframe.Decode(buffer);
     currentframe++;
     return 0;
 }