Link to home
Start Free TrialLog in
Avatar of keepkard
keepkard

asked on

howto detect when master volume is set to mute?

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.
SOLUTION
Avatar of Agarici
Agarici
Flag of Romania image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial