don't add input device to the same controllable than the output device, for now just remove them

master
Simon G 5 years ago
parent c825c08ed0
commit 9f0d14d0a2
  1. 3
      Lib.Audio/ControllableCollector.cs

@ -31,6 +31,9 @@ namespace Lib.Audio
Dictionary<string, List<AudioSessionControl>> 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++)
{

Loading…
Cancel
Save