示例#1
0
		protected override void OnClosing(CancelEventArgs e)
		{
			_sound?.Dispose();
			_channel?.Dispose();
			_system?.Dispose();
			base.OnClosing(e);
		}
示例#2
0
 protected override void Dispose(bool disposing)
 {
     if (disposing && (components != null))
     {
         components.Dispose();
         if (!_fmod.IsClosed)
         {
             _fmod.Close();
         }
         _fmod.Dispose();
     }
     base.Dispose(disposing);
 }
示例#3
0
 public override void Dispose()
 {
     Log.Warn("FmodCore audio engine disposing");
     closing = true;
     system.Dispose();
 }