change volume win32 c++

后端 未结 6 1994
你的背包
你的背包 2020-12-09 05:41

How would I go about changing the sound volume in c++ win32? Also how would I mute/unmute it? Thanks for the help!

6条回答
  •  无人及你
    2020-12-09 06:21

    Two options:

    1. There's an answer to that question here on SO (changing the master volume from C++, which also includes SetMute, etc.)

    2. 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.

提交回复
热议问题