public byte[] Save() { MemoryStream mem = new MemoryStream(); foreach (TreeNode node in EditorRoot.Nodes[1].Nodes) { for (int i = 0; i < bars.AmtaList.Count; i++) { string audioName = bars.AmtaList[i].Name; if (Path.GetFileNameWithoutExtension(node.Text) == audioName) { Console.WriteLine(audioName); bars.audioList[i].data = ((AudioEntry)node).Data; } } } bars.Save(mem); return(mem.ToArray()); }
public void Save(System.IO.Stream stream) { bars.Save(stream); }