I wish to control the panning (volume level of the left/right audio channel) of an application by process ID in C#.
I have found similar questions, but they all control the stream volume and cannot 'pan' the two channels for stereo streams.
Controling Volume Mixer
Controlling Application's Volume: By Process-ID
Getting individual windows application current volume output level as visualized in audio Mixer
Trying to build a simple c# app to control my volume mixer
I'm using Microsoft Visual Studio 2013 C# on Windows 7.
The ultimate goal is to have an application that will pan the audio from applications based upon their window location of my triple monitor setup.
Please assist.
Edit: It appears all I need to use is IChannelAudioVolume instead of ISimpleAudioVolume but I have no idea how to use/find these magical GUID's or rewrite the code with my basic understanding of C#
IChannelAudioVolume http://msdn.microsoft.com/en-us/library/dd371023%28v=vs.85%29.aspx ISimpleAudioVolume http://msdn.microsoft.com/en-us/library/dd316531%28v=vs.85%29.aspx