From 3c8ac41556db1f786fe40aff67ea90567d55d375 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 24 Jan 2024 17:07:51 +0400 Subject: [PATCH] Always enumerate devices on open. --- alc/backends/wasapi.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alc/backends/wasapi.cpp b/alc/backends/wasapi.cpp index efe280bdc7..8a9f59995c 100644 --- a/alc/backends/wasapi.cpp +++ b/alc/backends/wasapi.cpp @@ -756,7 +756,7 @@ void WasapiPlayback::open(const char *name) { if(name) { - if(PlaybackDevices.empty()) + //if(PlaybackDevices.empty()) pushMessage(MsgType::EnumeratePlayback); if(std::strncmp(name, DevNameHead, DevNameHeadLen) == 0) { @@ -1415,7 +1415,7 @@ void WasapiCapture::open(const char *name) { if(name) { - if(CaptureDevices.empty()) + //if(CaptureDevices.empty()) pushMessage(MsgType::EnumerateCapture); if(std::strncmp(name, DevNameHead, DevNameHeadLen) == 0) {