Added default device selection
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using EonaCat.VolumeMixer.Managers;
|
||||
using EonaCat.VolumeMixer.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
class Program
|
||||
@@ -15,16 +16,6 @@ class Program
|
||||
{
|
||||
try
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
var devicesTest = await volumeMixer.GetAudioDevicesAsync(DataFlow.Output);
|
||||
var micrphonesTest = await volumeMixer.GetMicrophonesAsync();
|
||||
Console.WriteLine($"Found {devicesTest.Count} playback devices");
|
||||
Console.WriteLine($"Found {micrphonesTest.Count} microphones");
|
||||
await Task.Delay(100);
|
||||
}
|
||||
|
||||
|
||||
// Get all audio PLAYBACK devices
|
||||
var devices = await volumeMixer.GetAudioDevicesAsync(DataFlow.Output);
|
||||
Console.WriteLine($"Found {devices.Count} playback devices:");
|
||||
|
||||
Reference in New Issue
Block a user