/// <summary> /// Normal constructor. /// </summary> /// <param name="fileName"></param> public SoundCache(string fileName, SoundBanksInfoXML banksinfo) { FileName = fileName; info = banksinfo; using (var br = new BinaryReader(new FileStream(fileName, FileMode.Open))) Read(br); }
public SoundManager() { Items = new Dictionary <string, List <IWitcherFile> >(); Archives = new Dictionary <string, SoundCache>(); FileList = new List <IWitcherFile>(); Extensions = new List <string>(); AutocompleteSource = new AutoCompleteStringCollection(); soundBanksInfo = new SoundBanksInfoXML(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "SoundCache", "soundbanksinfo.xml")); }
public SoundManager() { Items = new Dictionary <string, List <IWitcherFile> >(); Archives = new Dictionary <string, SoundCache>(); FileList = new List <IWitcherFile>(); Extensions = new List <string>(); AutocompleteSource = new AutoCompleteStringCollection(); soundBanksInfo = new SoundBanksInfoXML("SoundCache\\soundbanksinfo.xml"); }