Solved

howto detect when master volume is set to mute?

Posted on 2006-07-12
2
1,328 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 200 total points
ID: 17097293
0
 
LVL 4

Accepted Solution

by:
SmithJW earned 300 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Bit flags and bit flag manipulation is perhaps one of the most underrated strategies in programming, likely because most programmers developing in high-level languages rely too much on the high-level features, and forget about the low-level ones. Th…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video discusses moving either the default database or any database to a new volume.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now