I'm trying to get a list of processes that have audio. The processes that display in Volume Mixer.
Currently I have:
var currentProcess = Process.GetProcesses();
foreach (Process Proc in currentProcess.Where(p => p.MainWindowHandle != IntPtr.Zero))
{
Console.WriteLine(Proc.ProcessName);
}
Which list applications that have a window, is there a way to filter this further to only display audio processes?
Thank you!