public static void Main() { using (var of = new OpenFileDialog()) { of.Filter = "Wwise files | *.wem;*.bnk; *.cache"; if (of.ShowDialog() == DialogResult.OK) { switch (Path.GetExtension(of.FileName)) { case ".wem": { var wem = new Wwise.WEM.RiffFile(of.FileName); break; } case ".bnk": { var bnk = new Wwise.BNK.BNK(); bnk.LoadBNK(new MemoryStream(File.ReadAllBytes(of.FileName))); break; } case ".cache": { var sc = new WolvenKit.Cache.SoundCache(of.FileName, new SoundBanksInfoXML("SoundCache\\soundbanksinfo.xml")); foreach (var f in sc.Files) { Console.WriteLine("Item => " + f.Name + " | " + sc.GetIDFromPath(f.Name)); } break; } } } } }
public static void Main() { using (var of = new OpenFileDialog()) { of.Filter = "Wwise files | *.wem;*.bnk"; if (of.ShowDialog() == DialogResult.OK) { switch (Path.GetExtension(of.FileName)) { case ".wem": { var wem = new Wwise.WEM.RiffFile(of.FileName); break; } case ".bnk": { var bnk = new Wwise.BNK.BNK(); bnk.LoadBNK(new MemoryStream(File.ReadAllBytes(of.FileName))); break; } } } } }