Esempio n. 1
0
 /// <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);
 }
Esempio n. 2
0
 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"));
 }
Esempio n. 3
0
 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");
 }