使用c#/.net在Windows 7和Windows XP中更改Wave/麦克风的系统音量... [英] Change the System Volume of Wave / Microphone... in Windows 7 and Windows XP with c#/.net
问题描述
我现在搜索了一段时间,我需要编写一个程序,该程序可以读出所有声音设备并调整Windows 7和XP的系统音量.
我首先使用了一个在这里找到的项目,但是它不适用于Windows7.所以我的问题是,有没有办法使一个可以跨两个平台(Windows 7和XP)工作的应用程序读出声音设备并调节音量?
感谢您的帮助.
我只是在列表框中列出了设备.
通过不在Windows 7上运行,我的意思是该应用程序甚至没有在Windows 7下启动,并且我还阅读到某些应用程序现在仅更改其自己的音量,因此我需要一个可以更改主音量的应用程序.
我曾经尝试过的某些链接:
http://www.codeguru.com/csharp/csharp/cs_graphics/sound/article. php/c10931 [ ^ ]
http://rongchaua.net/blog/c-adjust-master -volume-in-vista-and-windows-7/ [
Hi,
I was searching now for quite a while, I need to write a program which can read out all the sound devices and adjust the system volume for windows 7 and XP.
I first used a project I found here but it will not work with windows 7. So my question is, is there a way to make an application that works crossover both platforms (windows 7 and XP) to read out sound devices and adjust volume?
Your help is appreciated.
I just listed the devices in a listbox.
By not working on Windows 7 i mean that the application didnt even start under Windows 7 and i also read that some applications only change their own volume now, i need an application that changes the master volume.
Some links i used tried:
http://www.codeguru.com/csharp/csharp/cs_graphics/sound/article.php/c10931[^]
http://rongchaua.net/blog/c-adjust-master-volume-in-vista-and-windows-7/[^] (This link wont work on xp)
I used some more but i cant find them right now. Thanks for your Answer
Nikolas
推荐答案
您可以尝试 ^ ]-使用API调用,因此可以在两种操作系统中使用.
You could try this[^] - uses API calls so could work in both operating systems.
这篇关于使用c#/.net在Windows 7和Windows XP中更改Wave/麦克风的系统音量...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!