howto detect when master volume is set to mute?
Posted on 2006-07-12
i've been trying to detect when the master volume is set to mute. i'm using the winmm.dll library to obtain the actual volume and the max volume but i can't obtain the instruction that indicate the master volume is set to mute. i don't know how to detect what instruction is thrown when the mute is enabled.
the major problem i have is that although i can obtain de currentVolume or the actualVolume, when i set the master sound to mute, i don't know what instruction of the winmm.dll library i need to invoke to obtain that the mute is enabled.
i have a getVolume function which return the currentVolume but although i set master volume to mute, the function return the currentVolume before i switch to the mute status; the currentVolume doesn't change it value and i have no idea to obtain the mute status.