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