问题
I'm having problems with the Directshow.net library and Windows 7.
In some PC (only if in Device Manager > Controllers Sound, video, listed: "High Definition Audio Device") only detect 1 mic when Skype, MSN, and Recording Devices, lists at least two; when executes this code:
Filter audioDevice = null;
if (capture != null)
audioDevice = capture.AudioDevice;
"audioDevice" only have the first mic (internal mic or rear mic), and don't retrieve de second mic (front mic -jack-) or vice versa.
Someone has solved or know another library to capture Video and Audio from C#??
回答1:
There is little to solve here. DirectShow.NET uses DirectShow, which in turn uses Audio Capture Filter, which uses legacy audio APIs to capture audio. Skype instead uses WASAPI, latest and greatest audio capture API in Windows Vista+ (falls back to older APIs in Windows XP-).
There is only one workaround available: to write proprietary audio capture filter backed by WASAPI.
来源:https://stackoverflow.com/questions/13454565/directshow-net-dont-detect-all-mics-in-windows-7