ITCAudioToneGetCurrentVolume

Returns the current volume setting for the computer.

Syntax

DWORD ITCAudioToneGetCurrentVolume(void);

Parameters

None.

Return Values

Returns the current volume as a scaled value that is consistent with the volume range associated with ITCAudioPlayTone. Range is 0 to 4. A value of 0 equals "no volume."

A value of -1 (0xFFFFFFFF) indicates that the current volume is unknown, meaning that a fault condition prevented access to the volume setting.

More Information

Audio and Sound Functions