public void Dispose() { if (_disposed) { return; } StopSound(); _outputDevice.Dispose(); _disposed = true; }
public void Dispose() { if (_disposed) { return; } StopSound(); _soundOutput.Dispose(); _soundOutput = null; _disposed = true; }
private void RetroThreadFinished(object sender, EventArgs e) { _retroEmulator.Dispose(); _retroEmulator = null; if (_textureOutput != null) { _textureOutput.Dispose(); _textureOutput = null; } if (_soundOutput != null) { _soundOutput.Dispose(); _soundOutput = null; } Logger.Debug("LibRetroFrontend: Libretro thread finished"); }