Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit 95d4e57

Browse files
taste1981jianjunz
authored andcommitted
Enable automatic audio playback device switching (#92)
1 parent c35a6be commit 95d4e57

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/audio_device/win/audio_device_core_win.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,13 @@ HRESULT __stdcall AudioDeviceWindowsCore::OnDefaultDeviceChanged(
184184

185185
ULONG AudioDeviceWindowsCore::AddRef() {
186186
ULONG new_ref = InterlockedIncrement(&ref_count_);
187+
// RTC_DLOG(INFO) << "__AddRef => " << new_ref;
187188
return new_ref;
188189
}
189190

190191
ULONG AudioDeviceWindowsCore::Release() {
191192
ULONG new_ref = InterlockedDecrement(&ref_count_);
193+
// RTC_DLOG(INFO) << "__Release => " << new_ref;
192194
return new_ref;
193195
}
194196

@@ -404,7 +406,6 @@ AudioDeviceWindowsCore::AudioDeviceWindowsCore()
404406
_hRecThread(nullptr),
405407
_hCaptureStartedEvent(nullptr),
406408
_hShutdownCaptureEvent(nullptr),
407-
_hDeviceRestartEvent(nullptr),
408409
_hMmTask(nullptr),
409410
_playAudioFrameSize(0),
410411
_playSampleRate(0),

0 commit comments

Comments
 (0)