using NUnit.Framework;
using System;
-using System.Linq;
using System.Threading;
using System.Threading.Tasks;
var cts = new CancellationTokenSource();
var audioStreamPolicy = new AudioStreamPolicy(AudioStreamType.Media);
- if (AudioManager.GetConnectedDevices().Count(d => d.IoDirection == AudioDeviceIoDirection.Output) == 0)
- return;
-
foreach (AudioDevice d in AudioManager.GetConnectedDevices())
{
if (d.Type == AudioDeviceType.AudioJack && d.IsRunning && d.IoDirection == AudioDeviceIoDirection.InputAndOutput)