我需要能够在Vista/Windows 7的c#应用程序中使麦克风或线路输入静音. [英] i need to be able to mute my microphone or line-in in c# application for Vista/Windows 7.

查看:222
本文介绍了我需要能够在Vista/Windows 7的c#应用程序中使麦克风或线路输入静音.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我过去用于XP的代码不再适用于Vista或Windows7.我需要能够为Vista或Windows 7操作系统静音或设置麦克风或线路输入的音量.有什么想法吗?

谢谢

My code that used to work for XP is no longer works for Vista or Windows 7. I need to be able to mute or set volume for microphone or line -in for Vista or Windows 7 operation system. Any ideas?

Thanks

推荐答案

您可以按照我的想法使用Win32 API类来做到这一点,请尝试使用此链接获取Win32硬件类,希望对您有所帮助:

http://msdn.microsoft.com/en-us/library/aa389273 (VS.85).aspx#_hmm_networking_device_classes [
You can use Win32 API Classes to do that as I think, try this link for Win32 hardware classes, I hope it helps you out:

http://msdn.microsoft.com/en-us/library/aa389273(VS.85).aspx#_hmm_networking_device_classes[^]


我还没有遇到混音器周围的托管包装,但是您可以编写自己的包装这并不是一件微不足道的任务,因此值得认真研究一下.

如果您需要编写自己的包装器,则只需在
此处 > [ ^ ]和随C ++一起安装的MMSystem.h中,但您应该能够在线获取它-如果没有,则它可能包含在C ++ express中.
I haven''t come across a managed wrapper around the audio mixer but you can write your own although it''s not exactly a trivial task so it may be worth some serious googling.

If you need to write your own wrapper then all the stuff you need is here[^] and in MMSystem.h which is installed along with C++ but you should be able to source it online - if not, it may be included with C++ express.


这篇关于我需要能够在Vista/Windows 7的c#应用程序中使麦克风或线路输入静音.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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