Fixed memory leak
This commit is contained in:
parent
a0df126bcf
commit
be67abaf64
|
@ -19,14 +19,6 @@ class Program
|
||||||
var devices = await volumeMixer.GetAudioDevicesAsync(DataFlow.Output);
|
var devices = await volumeMixer.GetAudioDevicesAsync(DataFlow.Output);
|
||||||
Console.WriteLine($"Found {devices.Count} playback devices:");
|
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)
|
foreach (var device in devices)
|
||||||
{
|
{
|
||||||
Console.WriteLine($"- {device.Name} (Default: {device.IsDefault})");
|
Console.WriteLine($"- {device.Name} (Default: {device.IsDefault})");
|
||||||
|
|
Loading…
Reference in New Issue