Solved

howto detect when master volume is set to mute?

Posted on 2006-07-12
2
1,386 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

691 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