protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing) { eventObject?.WaitOne(); eventObject?.Close(); eventObject = null; wasapi.Dispose(); renderClient.Dispose(); } }
protected override void Dispose(bool disposing) { if (disposing) { eventObject?.WaitOne(); eventObject?.Close(); eventObject = null; wasapi.Dispose(); captureClient.Dispose(); } base.Dispose(disposing); }