public static LedSeq load(string path) { // read header and params // open the archive file if (!File.Exists(path)) { Debug.LogError("the file do not exist"); return(null); } // get the headers and valid header // create the corresponding ledseq Stream sw = File.OpenRead(path); LedSeq ledseq = null; if ((ledseq = validHeader(sw)) != null) { // input all the data and fill ledseq ledseq.restoreParams(); ledseq.restoreFrameBuffer(sw); } sw.Close(); sw.Dispose(); return(ledseq); }