stock username
stock username

Reputation: 49

List ASIO audio out devices in NAudio

How do I list ASIO audio output devices using NAudio library?

For WaveIn, it would be:

int devcount = WaveIn.DeviceCount;
for (int c= 0; c < devcount; c++)
{
    WaveInCapabilities info = WaveIn.GetCapabilities(c);
    Console.Out.WriteLine("{0}, {1}", info.ProductName, info.Channels);
}

For WASAPI, it would be:

MMDeviceEnumerator enumerator = new MMDeviceEnumerator();
foreach (MMDevice device in enumerator.EnumerateAudioEndPoints(DataFlow.Capture, DeviceState.All))
{
    Console.WriteLine("{0}, {1}", device.FriendlyName, device.State);
}

Upvotes: 1

Views: 2106

Answers (1)

According to the implementation of the AsioOutSettingsPanel class, ASIO driver names are used as device names. So, the AsioOut.GetDriverNames() method can be used.

Upvotes: 1

Related Questions