Muting all audio outputs with IAudioEndpointVolume


I have a selfhost tool that I use to mute all audio outputs programmatically.

Pseudocode:

IMMDeviceEnumerator::EnumAudioEndpoints
for each device:
    IMMDevice::Activate(IAudioEndpointVolume)
    IAudioEndpointVolume::SetMute(TRUE)

Source and binaries attached.

EDIT September 22 2015: moved source to github https://github.com/mvaneerde/blog/tree/master/mute-all-outputs

mute-all-outputs.zip

Comments (0)