Beispiel #1
0
 public void RemoveSound()
 {
     if (_withSound)
     {
         FreeSL.fslFreeSound(_sound, true);
         _withSound = false;
     }
 }
Beispiel #2
0
 public void RemoveSound()
 {
     if (_withSound)
     {
         try{
             Console.WriteLine("Destroying: " + this._soundFile);
             FreeSL.fslSoundSetGain(_sound, 0.1f);
             FreeSL.fslFreeSound(_sound, true);
             _withSound = false;
         }
         catch (Exception ex) {
             LogManager.Singleton.LogMessage(LogMessageLevel.LML_CRITICAL, "Exception while trying to remove sound: " + _soundFile + " (" + ex.Message + ") " + ex.StackTrace);
         }
     }
 }