|
|
|
@ -31,6 +31,9 @@ namespace Lib.Audio |
|
|
|
Dictionary<string, List<AudioSessionControl>> sessionsById = new(); |
|
|
|
Dictionary<string, List<AudioSessionControl>> sessionsById = new(); |
|
|
|
foreach (var audioDevice in audioDevices) |
|
|
|
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; |
|
|
|
SessionCollection sessions = audioDevice.AudioSessionManager.Sessions; |
|
|
|
for (int i = 0; i < sessions.Count; i++) |
|
|
|
for (int i = 0; i < sessions.Count; i++) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|