public void Dispose() { if (_audio != null) { _audio.Dispose(); } }
void FindSimilarClientFormFormClosing(object sender, FormClosingEventArgs e) { if (player != null) { player.Dispose(); } }
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); }
public void Dispose() { audio.Dispose(); window.Close(); window.Dispose(); }
public static void UnloadWave(IAudio audio) { _disposables.TryRemove(audio.FileName, out _); audio.Dispose(); }