MicGuard
A ~60 KB native Windows CoreAudio tray utility that snaps your microphone volume back in under 5 ms whenever WebRTC apps try to drag it down.
C#.NET Framework 4.xWASAPIWindows CoreAudio#windows#audio#utility
Why Fighting Auto-Gain Needed an Event Hook
When Chromium removed the flag to block WebRTC automatic input volume adjustment, calls on Google Meet, Zoom, and Teams started silently dragging my Windows microphone slider down mid-sentence.
Polling scripts are a lousy band-aid: you stay quiet for seconds until the next timer tick checks your gain. MicGuard goes straight to the source—hooking Windows CoreAudio’s IAudioEndpointVolumeCallback directly.
Key Engineering Choices
- Event-Driven (< 5 ms Snap-Back, 0% Idle CPU): Instead of asking Windows “did anything change?” every second, MicGuard subscribes to OS-level endpoint change notifications and snaps your target percentage back immediately.
- No-Admin Exclusive Mode Cleanup: Uses
IMMDevice.OpenPropertyStore(STGM_READWRITE)to clear “Allow applications to take exclusive control” and priority checkboxes across capture and render endpoints. - Zero Dependencies: Compiles with Windows’ built-in
.NET Framework 4.xcsc.exeinto a single ~60 KBAnyCPUbinary.