问题描述
Directshow.net库和Windows 7出现问题.
I'm having problems with the Directshow.net library and Windows 7.
在某些PC中(仅在设备管理器">控制器"中,声音,视频",列出:高清音频设备")仅在Skype,MSN和录音设备"列出至少两个麦克风时才检测到1个麦克风.执行此代码的时间:
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"只有第一个麦克风(内部麦克风或后置麦克风),而没有第二个麦克风(前麦克风-jack-),反之亦然.
"audioDevice" only have the first mic (internal mic or rear mic), and don't retrieve de second mic (front mic -jack-) or vice versa.
有人解决了或知道另一个库来从C#中捕获视频和音频?
Someone has solved or know another library to capture Video and Audio from C#??
推荐答案
这里没有什么要解决的. DirectShow.NET使用DirectShow,而DirectShow又使用音频捕获过滤器,该过滤器使用旧版音频API捕获音频. Skype改为使用 WASAPI ,这是Windows Vista +中最新,最出色的音频捕获API(回溯到Windows XP-中的旧API).
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-).
只有一种解决方法:编写由WASAPI支持的专有音频捕获过滤器.
There is only one workaround available: to write proprietary audio capture filter backed by WASAPI.
这篇关于Directshow.net不会在Windows 7中检测到所有麦克风的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!