Solved

howto detect when master volume is set to mute?

Posted on 2006-07-12
2
1,368 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

733 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