From 1999bc58fa98baebfb4932371349ee82812b5a11 Mon Sep 17 00:00:00 2001 From: Mooneer Salem Date: Tue, 13 May 2025 15:08:12 -0700 Subject: [PATCH] Event handle needs to be closed on stop(). --- src/audio/WASAPIAudioDevice.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/audio/WASAPIAudioDevice.cpp b/src/audio/WASAPIAudioDevice.cpp index fd2c89bb..a82f4d84 100644 --- a/src/audio/WASAPIAudioDevice.cpp +++ b/src/audio/WASAPIAudioDevice.cpp @@ -382,6 +382,12 @@ void WASAPIAudioDevice::stop() } } + if (renderCaptureEvent_ != nullptr) + { + CloseHandle(renderCaptureEvent_); + renderCaptureEvent_ = nullptr; + } + if (renderClient_ != nullptr) { renderClient_->Release();