Exemplo n.º 1
0
 public static void Save(string path)
 {
     DarkOutStream dos = new DarkOutStream(File.Create(path));
     dos.OpenChunk("VSEQ");
     dos.Write(FramesPerTick);
     dos.OpenChunk("SONG");
     Song.Write(dos);
     dos.CloseChunk();
     dos.CloseChunk();
     dos.Close();
 }
Exemplo n.º 2
0
 private void savePatchToolStripMenuItem_Click(object sender, EventArgs e)
 {
     saveFileDialog1.InitialDirectory = patchesDir;
     DialogResult res = saveFileDialog1.ShowDialog();
     if (res == DialogResult.OK)
     {
         DarkOutStream dos = new DarkOutStream(File.Create(saveFileDialog1.FileName));
         dos.OpenChunk("PTCH");
         selectedChannel.Patches[0].Write(dos);
         dos.CloseChunk();
         dos.Close();
     }
     RefreshPatches();
 }