コード例 #1
0
        public void Dispose()
        {
            if (_disposed)
            {
                return;
            }

            StopSound();

            _outputDevice.Dispose();

            _disposed = true;
        }
コード例 #2
0
        public void Dispose()
        {
            if (_disposed)
            {
                return;
            }

            StopSound();

            _soundOutput.Dispose();
            _soundOutput = null;

            _disposed = true;
        }
コード例 #3
0
 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");
 }