Directshow.net don't detect all mics in Windows 7

核能气质少年 提交于 2019-12-24 16:42:56

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!