Directshow.net不会在Windows 7中检测到所有麦克风 [英] Directshow.net don't detect all mics in Windows 7

查看:77
本文介绍了Directshow.net不会在Windows 7中检测到所有麦克风的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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又使用 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中检测到所有麦克风的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆