Group: Windows Multimedia - Library: winmm
The waveOutGetVolume function retrieves the current volume level of the specified waveform-audio output device.
MMRESULT waveOutGetVolume(
HWAVEOUT hwo,
LPDWORD pdwVolume
);
DECLARE INTEGER waveOutGetVolume IN winmm;
INTEGER hwo,;
INTEGER @ pdwVolume
hwo Handle to an open waveform-audio output device. This parameter can also be a device identifier.
pdwVolume Pointer to a variable to be filled with the current volume setting.
Returns MMSYSERR_NOERROR (0) if successful or an error otherwise.
The low-order word of pdwVolume 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.