【发布时间】:2014-01-31 06:27:37
【问题描述】:
我想用函数改变主音量
MMRESULT waveOutSetVolume(
HWAVEOUT hwo,
DWORD dwVolume
);
hwo
Handle to an open waveform-audio output device. This parameter can also be a device identifier.
如何为主卷创建处理程序?
dwVolume
Specifies a new volume setting. The low-order word contains the left-channel volume setting, and the high-order word contains the right-channel setting. A value of 0xFFFF represents full volume, and a value of 0x0000 is silence.
If a device does not support both left and right volume control, the low-order word of dwVolume specifies the volume level, and the high-order word is ignored.
如何将音量(例如 75)传递给函数?
像这样尝试:How to change master volume programmatically? 不适合我!
【问题讨论】: