如何在SlimDX中声明麦克风? [英] how to declare microphone in SlimDX?

查看:83
本文介绍了如何在SlimDX中声明麦克风?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以帮助我吗?实际上,我使用的是SlimDX库,但我认为它与DirectX/DirectSound库非常相似.我已经尝试过写下如下代码:

Can anybody help me? Actually, I was using the SlimDX library, but I think it is very similar with the DirectX / DirectSound library. I have already tried to write down the code like below :

using SlimDX;
using SlimDX.DirectSound;

DirectSound Mic = new DirectSound(DirectSoundGuid.DefaultCaptureDevice);
Mic.SetCooperativeLevel(this.Handle, CooperativeLevel.Priority);



当我调试代码时,据说找不到任何声音驱动程序?
有什么问题吗?
非常感谢您的答复



and when I debug the code, it is said that cant find any sound driver?
what is the problem?
big thanks for the reply

推荐答案

您最好在这里寻求帮助:
http://www.gamedev.net/forum/10-directx-and-xna/ [ ^ ]

这似乎是SlimDX开发人员经常去的地方,他们很可能精通帮助您调试此问题.

也就是说,您是否设置了默认的捕获设备?您可以使用Windows录音机通过麦克风捕获声音吗?

干杯.
You''re probably better to look for help here:
http://www.gamedev.net/forum/10-directx-and-xna/[^]

This appears to be where the developers of SlimDX frequent and they are most likely well versed in helping you debug this.

That said, do you have a default capture device set? Can you use windows sound recorder to capture through your mic?

Cheers.


这篇关于如何在SlimDX中声明麦克风?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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