From 9f0d14d0a22f385b3758ce610d9de1c53cc3a9d8 Mon Sep 17 00:00:00 2001 From: Simon G Date: Tue, 13 Apr 2021 19:53:28 +0200 Subject: [PATCH] don't add input device to the same controllable than the output device, for now just remove them --- Lib.Audio/ControllableCollector.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib.Audio/ControllableCollector.cs b/Lib.Audio/ControllableCollector.cs index 5bf8d18..fa18670 100644 --- a/Lib.Audio/ControllableCollector.cs +++ b/Lib.Audio/ControllableCollector.cs @@ -31,6 +31,9 @@ namespace Lib.Audio Dictionary> sessionsById = new(); foreach (var audioDevice in audioDevices) { + if (audioDevice.DataFlow == DataFlow.Capture) //don't add input device to the same controllable than the output device, for now just remove them + continue; + SessionCollection sessions = audioDevice.AudioSessionManager.Sessions; for (int i = 0; i < sessions.Count; i++) {