Cev
Cev

Reputation: 1428

How can I control the Windows 7 mixer programmatically?

Windows 7 has per-application volume controls that let you mute applications individually. How can I mute and unmute an application from a console app?

Upvotes: 4

Views: 6847

Answers (1)

Hound
Hound

Reputation: 703

You'll want to use the IAudioSessionManager2 COM interface. Have a look at Vista Core Audio API Master Volume Control that wraps some of the new Core Audio APIs. The console project therein enumerates active audio sessions and lets you tweak volume and mute status of an active audio session.

Upvotes: 2

Related Questions