?
Solved

howto detect when master volume is set to mute?

Posted on 2006-07-12
2
Medium Priority
?
1,478 Views
Last Modified: 2012-05-05
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.
0
Comment
Question by:keepkard
2 Comments
 
LVL 11

Assisted Solution

by:Agarici
Agarici earned 600 total points
ID: 17097293
0
 
LVL 4

Accepted Solution

by:
SmithJW earned 900 total points
ID: 17097425
http://www.microsoft.com/indonesia/msdn/pinvoke.aspx

I think this link should be more useful. It has c# and VB examples of muting and unmuting the sound card, as welll as other winmm.dll functions.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Screencast - Getting to Know the Pipeline
Suggested Courses
Course of the Month16 days, 6 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question