Exemple #1
0
 public void SetSound(string package, string soundFile, bool loop)
 {
     RemoveSound();
     if (System.IO.File.Exists(package) == false)
     {
         throw new System.IO.FileNotFoundException("The sound file at : " + soundFile + " does not exist.");
     }
     FreeSL.fslLoadSoundFromZip(package, soundFile);
     LoopSound(loop);
     _withSound = true;
 }
Exemple #2
0
 public void SetSound(string package, string soundFile, bool loop)
 {
     RemoveSound();
     if (File.Exists(package) == false)
     {
         throw new FileNotFoundException("The sound file at : " + soundFile + " does not exist.");
     }
     lock (SoundManager3D.Instance.LockSync)
     {
         FreeSL.fslLoadSoundFromZip(package, soundFile);
         LoopSound(loop);
     }
     _withSound = true;
 }