如何在Windows 7中控制Master-Volume? [英] How do I control the Master-Volume in Windows 7?

查看:104
本文介绍了如何在Windows 7中控制Master-Volume?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从Windows XP迁移到Windows 7,我发现这并不容易。我对waveOutSetVolume()的调用不再有效,因为我相信你们都知道。我正在寻找替代功能,我希望有人在这里有一个。这必须是STRAIGHT-C功能。没有C ++。我对对象和方法一无所知。基本上,我所知道的就是Charles Petzold的伟大着作中可以找到的东西。我只做了一次,写了一个可以创建桌面快捷方式的普通C函数,并且需要涉及OLE和COM。我希望我从来没有像我一样需要再次使用OLE和COM,但如果有必要控制Win7主音量,我愿意这样做。





现在已经4或5天了,我发现这里没有人可以帮助我。所以,我要把我的帐篷折叠起来,然后前往StackOverflow尝试运气。无论如何,Thanx,伙计们。



我认为必须有很多Windows 7论坛,而且我愿意接受有关我可能会尝试哪些论坛的建议。所有建议都表示赞赏。



最后,我发现我真的没有实际需要了解微软每一个小转弯的技术细节精神错乱,尤其不是这个 - 我想要做的就是上下调节音量(用自制遥控器Gizmo)。 (当然,这已经正常了,如果机器正在运行播放MP3的MY程序,但如果我运行的是Win7而不是WinXP,我就无法控制Pandora的音量。



因此,我想知道是否有一个年轻的铆钉有兴趣帮我出租。我想要的只是一个DLL,它可以在WinXP和Win7下上下转动Master或Wave音量。嗯,嘿嘿,我想我也希望它能读出那些音量水平,也许当我们进入工作范围时,我也会想到其他的东西。我当然会接受你们提出的任何合理的建议,但我想说我希望价格足够合理,我可以为整个工作提供资金,并能够将最终的DLL作为免费软件提供,而不是通过销售来弥补开发成本。 (我已经放弃了所有用于个人使用的东西。)

I'm trying to migrate from Windows XP to Windows 7, and I find that it ain't easy. My calls to waveOutSetVolume() no longer work, as I'm sure you all know. I'm looking for a replacement function, and I'm hoping someone here has one. This has to be a STRAIGHT-C function. No C++. I don't know anything about objects and methods. Basically, all I know is what can be found in Charles Petzold's magnificent book. I did, just once, write a plain C function that can create a desktop shortcut, and that needed to involve OLE and COM. I hope I never as long as I live need to mess with OLE and COM again, but I am willing to do that if that is necessary to control the Win7 master volume.


It's been 4 or 5 days now, and I see that nobody here is able to help me. So, I'm gonna fold up my tent here and head on over to StackOverflow to try my luck. Thanx anyway, guys.

I figure there must be lots of Windows 7 forums, and I'm open to suggestions on which one(s) I might try. All advice is appreciated.

Finally, it occurs to me that I really don't have an actual NEED to understand the technical details of every little twist and turn of Microsoft insanity, and especially not this one -- all I want to do is turn the volume up and down (with by homebrew remote control gizmo). (This already works fine, of course, if the machine is running MY program that plays MP3s, but I cannot control the volume from, say, Pandora if I'm running Win7 instead of WinXP).

THEREFORE, I'm wondering if maybe one of you young studs would be interested in helping me out for hire. All I want is a DLL that can turn either the Master or the Wave volume up and down under WinXP and Win7. Well, heh heh, I guess I also want it to read those volume levels as well, and maybe when we got into the scope-of-work I'd think of other things too. I'd certainly entertain any reasonable offers from you guys, but I would like to say that I would like the price to be reasonable enough that I could fund the whole effort and be able to give the resulting DLL away as Freeware, rather than have to recoup the development cost thru sales. (I already give away all my stuff for use by individuals.)

推荐答案

其他人已经在这里回答了这个问题: Windows 7中的卷控制 [ ^ ]



此外,文档中的注释表明该卷现在是过程:

http:/ /msdn.microsoft.com/en-us/library/windows/desktop/dd743874(v=vs.85).aspx [ ^ ]



顺便说一句,一个系统可以有多个输出,你可以控制一个吗?



据我所知,已经修改了卷处理以提供更多在计算机可以在不同位置提供不同音频内容的情况下的灵活性。
Someone else already answer that question here: Volume control in Windows 7[^]

Also a comment in documentation indicate that the volume is now by process:
http://msdn.microsoft.com/en-us/library/windows/desktop/dd743874(v=vs.85).aspx[^]

By the way, a system can have multiple outputs so which one would you control?

As far as I understand, volume handling has been modified to gave more flexibility in scenario where a computer can deliver different audio content at various location.


我认为我已经很好地四处寻找关于这个主题的现有对话

在发布我自己的问题之前,但确实看起来我没有做好的工作。

非常感谢指出现有的对话,Philippe。我很感激。

我可能无法在本周末之前回到这里,但我肯定会得到

回到它。



您问我如何处理具有多个输出的系统。我不太清楚你的意思

多输出。如果你的意思是同时播放wave和MIDI以及CD的某种组合,

我会说我不想知道任何奇怪的人。 :-)如果相反,你的意思是一个带有多个声音设备(卡片)的系统,我会说我永远不会有这样的系统而且我是完美的b $ b愿意忽略市场的那个小角落。毕竟,每次我们实施任何Windows程序时,我们都很乐意忽略那些名称为Apple和/或
Linux的细分市场。无论如何,多卡音响系统在百分比方面非常罕见。



再次感谢Philippe。
I thought I had done a good job of looking around for existing conversations on this subject
before posting my own question, but it sure does look like I didn't do a good ENOUGH job.
Thanks very much for pointing out the existing conversation, Philippe. I appreciate it.
I probably won't be able to get back to this before this weekend, but I will certainly get
back to it.

You ask how I would handle systems with multiple outputs. I'm not sure quite what you mean by
"multiple outputs". If you mean playing some combination of wave and MIDI and a CD simultaneously,
I would say I don't want to ever know anyone that strange. :-) If, instead, you mean a system
with multiple sound devices (cards), I would say that I will never have such a system and I am
perfectly willing to ignore that small corner of the market. After all, every time we implement ANY Windows program, we are happily ignoring those market segments whose names are Apple and
Linux. Anyway, multi-card sound systems are vanishingly rare, percentagewise.

Thanks again, Philippe.


这篇关于如何在Windows 7中控制Master-Volume?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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