I have several web cameras being attached to my PC. Each camera has a built-in microphone. I use the DirectShow.NET library to enumerate audio and video sources:
var audioDevices = DsDevice.GetDevicesOfCat(FilterCategory.AudioInputDevice).Convert<DsDevice>();
var videoDevices = DsDevice.GetDevicesOfCat(FilterCategory.VideoInputDevice).Convert<DsDevice>();
Thus I get two arrays. Now I need to play simultaneously audio and video from one specific camera. Let's say I use index or DevicePath property to select a required video source. How can I get the audio device which is related to the selected video source?