示例#1
0
 public void Dispose()
 {
     if (_audio != null)
     {
         _audio.Dispose();
     }
 }
示例#2
0
 void FindSimilarClientFormFormClosing(object sender, FormClosingEventArgs e)
 {
     if (player != null)
     {
         player.Dispose();
     }
 }
示例#3
0
文件: Core.cs 项目: modernstar/core
        public void Shutdown()
        {
            SettingsManager?.Save();

            if (Sip?.Account?.PresenceStatus != null &&
                Sip.Account.PresenceStatus.Code != PresenceStatusCode.Offline &&
                Sip.Account.PresenceStatus.Code != PresenceStatusCode.Unknown)
            {
                Sip.Account.UnRegister();
            }

            _audio?.Dispose();
        }
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (components != null)
         {
             components.Dispose();
         }
         if (m_Sound != null)
         {
             m_Sound.Dispose();
         }
     }
     base.Dispose(disposing);
 }
示例#5
0
 public void Dispose()
 {
     audio.Dispose();
     window.Close();
     window.Dispose();
 }
示例#6
0
 public static void UnloadWave(IAudio audio)
 {
     _disposables.TryRemove(audio.FileName, out _);
     audio.Dispose();
 }