我将如何在 c++ win32 中更改音量?另外我将如何静音/取消静音?感谢您的帮助!
How would I go about changing the sound volume in c++ win32? Also how would I mute/unmute it? Thanks for the help!
两个选项:
这里有 该问题的答案(更改主音量来自 C++,其中还包括 SetMute 等)
您是否考虑过显示音量控件并让用户使用?如果是这样,我可以为此发布一些代码.(您基本上只是使用音量控制小程序.
Have you considered showing the Volume controls and letting the user? If so, I can post some code for that. (You basically just shell out to the volume control applet.
这篇关于更改音量 win32 C++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
当没有异常时,C++ 异常会以何种方式减慢代码速In what ways do C++ exceptions slow down code when there are no exceptions thown?(当没有异常时,C++ 异常会以何种方式减慢代码速度?)
为什么要捕获异常作为对 const 的引用?Why catch an exception as reference-to-const?(为什么要捕获异常作为对 const 的引用?)
我应该何时以及如何使用异常处理?When and how should I use exception handling?(我应该何时以及如何使用异常处理?)
C++中异常对象的范围Scope of exception object in C++(C++中异常对象的范围)
从构造函数的初始化列表中捕获异常Catching exceptions from a constructor#39;s initializer list(从构造函数的初始化列表中捕获异常)
C++03 throw() 说明符 C++11 noexcept 之间的区别Difference between C++03 throw() specifier C++11 noexcept(C++03 throw() 说明符 C++11 noexcept 之间的区别)