I would like to know how to get a list of the installed audio out devices (waveOut) on a machine
OS: Windows (XP, Vista, 7) Framework: .Net 3.5 Language: c#
In Windows Vista and above you can use IMMDeviceEnumerator which is wrapped for you by NAudio in order to enumerate audio endpoint devices. For example:
var enumerator = new MMDeviceEnumerator();
foreach (var endpoint in
enumerator.EnumerateAudioEndPoints(DataFlow.Render, DeviceState.Active))
{
Console.WriteLine(endpoint.FriendlyName);
}