2

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

Community
  • 1
  • 1
Woodsy
  • 21
  • 6
  • Interesting idea. I'm affraid it might involve writing a custom audio driver, though... The volume mixer doesn't seem to support different panning for different applications. – Luaan Oct 10 '14 at 07:41
  • Have a look at [this article](http://www.codeguru.com/csharp/csharp/cs_graphics/sound/article.php/c10931/Windows-Mixer-Control-in-C.htm), it may give you some ideas. – The Blue Dog Oct 10 '14 at 07:50
  • 1
    As far as I know, Sessions can only support ISimpleAudioVolume so it is not possible to adjust their volume levels on a per channel basis. – xfx Oct 28 '14 at 00:26

0 Answers0