Fixed memory leak

This commit is contained in:
Jeroen Saey 2025-09-01 11:54:50 +02:00
parent a0df126bcf
commit be67abaf64
1 changed files with 0 additions and 8 deletions

View File

@ -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})");