Removed test code for disposal
This commit is contained in:
parent
28087b7730
commit
145dcb6148
|
@ -15,29 +15,6 @@ class Program
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
while (true)
|
|
||||||
{
|
|
||||||
var input = await volumeMixer.GetAudioDevicesAsync(DataFlow.Input);
|
|
||||||
var output = await volumeMixer.GetAudioDevicesAsync(DataFlow.Output);
|
|
||||||
var input2 = await volumeMixer.GetMicrophonesAsync();
|
|
||||||
|
|
||||||
foreach (var item in input)
|
|
||||||
{
|
|
||||||
item.Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach (var item in input2)
|
|
||||||
{
|
|
||||||
item.Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach (var item in output)
|
|
||||||
{
|
|
||||||
item.Dispose();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Get all audio PLAYBACK devices
|
// Get all audio PLAYBACK devices
|
||||||
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:");
|
||||||
|
|
Loading…
Reference in New Issue