问题描述
我正在使用 DirectShow.Net 枚举 DirectShow 设备,如下所示:
var devices = DsDevice.GetDevicesOfCat(FilterCategory.AudioInputDevice);
此代码返回预期的音频设备数量,但返回的所有项目的名称和其他属性均为空:
devices[0]
{DirectShowLib.DsDevice}
ClassID: System.NullReferenceException: Object reference not set to an instance of an object
DevicePath: null
Mon: null
Name: null
我已确认设备已正确注册到 GraphStudioNext,并且我知道音频设备一般都可以正常工作。我在使用其他设备(例如 FilterCategory.VideoInputDevice
)时也遇到了同样的问题。
有什么想法吗?
.Net 版本:4 构建目标:64 位 操作系统:Win 10
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)