Skip to content

Get the muted state of your input device with a global hotkey.

License

Notifications You must be signed in to change notification settings

trypsynth/micstate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Micstate

Simple C++ program to speak the muted state of your default input device using a global hotkey.

Why?

The current way of determining if an input device is muted or not on Windows is incredibly annoying:

  1. Open mmsys.cpl.
  2. Find the recording tab.
  3. Find your device.
  4. Press Alt+P.
  5. Control tab until you find the listen tab.
  6. Check listen to this device.
  7. Press Alt+A.
  8. Listen, and determine if it is or not, finally.
  9. Uncheck the box, hit apply, and close all the dialogs you just opened.

I have a laptop with a dedicated mute key that's super easy to hit, and I've hit it by accident many times, initially leading to my great confusion when no one could hear me, and later my paranoia that I hit it every time I launched a program that used the microphone. Hence, this program was born. Once you run it, it will passively sit in the background, waiting for you to press Control+Alt+Shift+M. When you do, the current state of your default input device will be spoken.

Configuration

The way this program works is by taking a tiny sample of audio (50 MS or so) from your default input device, getting the noise level (in DB), and comparing it to a configurable value. If the value is less than or equal to the configured value, the microphone is considered muted. By default, the value is -60 DB, but you can always change it. Open the config.ini file alongside the program and change the value of MinLevel in the Settings section to your desired value. You'll have to relaunch the program for this change to take effect.

Building

This program uses Mingw32-make as its build system, and all the needed library and header files are included in the repository. As such, building is done with a simple makefile. If you have MinGW installed, a simple:

mingw32-make

from the repository's root should do it.

About

Get the muted state of your input device with a global hotkey.

Topics

Resources

License

Stars

Watchers

Forks

Languages