Fixed memory leak
This commit is contained in:
@@ -19,14 +19,6 @@ class Program
|
||||
var devices = await volumeMixer.GetAudioDevicesAsync(DataFlow.Output);
|
||||
Console.WriteLine($"Found {devices.Count} playback devices:");
|
||||
|
||||
while (true)
|
||||
{
|
||||
var test = await volumeMixer.GetDefaultAudioDeviceAsync(DataFlow.Output);
|
||||
devices = await volumeMixer.GetAudioDevicesAsync(DataFlow.Output);
|
||||
devices = await volumeMixer.GetAudioDevicesAsync(DataFlow.Input);
|
||||
await Task.Delay(1000);
|
||||
}
|
||||
|
||||
foreach (var device in devices)
|
||||
{
|
||||
Console.WriteLine($"- {device.Name} (Default: {device.IsDefault})");
|
||||
|
Reference in New Issue
Block a user