I want to be able to use command line (scripts) on a Win10 machine to mute, unmute or change the volume level of any given application that is displayed in my Windows Volume Mixer.
After quite some time of researching I only found tools such as NirSoft's SoundVolumeView (https://www.nirsoft.net/utils/sound_volume_view.html), but no generic explanation of how these tools work and where they get their information from and send it to. I assume there is a way, after all there are tools which must be doing something.
As a hobby beginner coder (Powershell, AHK) I assume I'm using the wrong keywords for my search. If anyone could point me to some resources which explain the how, not the which tools can do it, I would be very happy - thanks.
CodePudding user response:
The core audio API used today is COM based. It exists in Vista and later.
You can start reading about it on MSDN here. Larry Ostermans blog is also useful.
That being said, Microsoft does not want you to do certain things programmatically, like changing the default audio output device. That means the Nirsoft applications is also using undocumented COM interfaces to perform some of its operations.
You might want to consider programming this in another language, something more COM friendly...
