I'm using NAudio to record audio from multiple microphone devices, but the problem is, to assign the device I have to provide device number (in WaveIn object), which is unknown.
WaveIn _waveInMicrophone = new WaveIn
{
DeviceNumber = ???,
WaveFormat = new WaveFormat(8000, 16, 1)
};
How to get the Device Number so that i can uniquely assign device to my WaveIn object?