From be67abaf64fc4086dac9ade2b29e8f0a7fb50d2a Mon Sep 17 00:00:00 2001 From: Jeroen Saey Date: Mon, 1 Sep 2025 11:54:50 +0200 Subject: [PATCH] Fixed memory leak --- EonaCat.VolumeMixer.Tester/Program.cs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/EonaCat.VolumeMixer.Tester/Program.cs b/EonaCat.VolumeMixer.Tester/Program.cs index 5b61082..8afeb67 100644 --- a/EonaCat.VolumeMixer.Tester/Program.cs +++ b/EonaCat.VolumeMixer.Tester/Program.cs @@ -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})");