how to adjust master volume in vista/xp

前端 未结 4 781
我寻月下人不归
我寻月下人不归 2021-01-13 01:20

i want to adjust the volume programatically like Get/SetMasterVolume in vista and xp? using mmsystem unit?

4条回答
  •  逝去的感伤
    2021-01-13 02:17

    The MMDevApi has a number of incorrect declarations. The double parameters should be single. The Boolean parameters work better as integer. And many if not all of the TGUID parameters should be PGUID. After correcting the declarations I was able to set the mute and the volume level.

提交回复
热议问题