From 0f55d8371e45677efe8f971019015dec21ba58c2 Mon Sep 17 00:00:00 2001 From: Yauhen Pahrabniak Date: Wed, 15 Nov 2023 10:37:25 +0100 Subject: [PATCH] fix: Show all audio input devices --- src/CSoundInput.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/CSoundInput.cpp b/src/CSoundInput.cpp index 0816a9e..a0e6eed 100644 --- a/src/CSoundInput.cpp +++ b/src/CSoundInput.cpp @@ -77,8 +77,7 @@ int CSoundInput::GetNumDevices() const for (uint32_t i = 0; BASS_RecordGetDeviceInfo(i, &deviceInfo); i++) { if (deviceInfo.flags & BASS_DEVICE_ENABLED && - !(deviceInfo.flags & BASS_DEVICE_LOOPBACK) && - (deviceInfo.flags & BASS_DEVICE_TYPE_MASK) == BASS_DEVICE_TYPE_MICROPHONE) + !(deviceInfo.flags & BASS_DEVICE_LOOPBACK)) { numDevices++; } @@ -93,8 +92,7 @@ uint32_t CSoundInput::GetDeviceIdFromIndex(int index) const for (uint32_t i = 0; BASS_RecordGetDeviceInfo(i, &deviceInfo); i++) { if (deviceInfo.flags & BASS_DEVICE_ENABLED && - !(deviceInfo.flags & BASS_DEVICE_LOOPBACK) && - (deviceInfo.flags & BASS_DEVICE_TYPE_MASK) == BASS_DEVICE_TYPE_MICROPHONE) + !(deviceInfo.flags & BASS_DEVICE_LOOPBACK)) { if (indexCounter == index) return i;