SCENARIO
For personal reasons I need to put my headphones in the opposite orientation, so what should be the left channel/headphone I put it in my right ear, and the right channel/headphone in the left ear.
When playing videogames this turns a big issue on games where the player must concentrate to find out where the sounds of the game come from (left or right audio channel) for example in a online shooter videogame, because... well, what comes from the left channel in-game I hear it on my right ear, and what comes from the right channel, on my left one. And here is where this question makes sense.
QUESTION
How can I programatically switch the (stereo)audio channels of the master sound device/headphones (or the channels of a target executable) in Windows using C# or VB.NET?.
I have no problem in order to depend of NAudio or VistaCoreAudioApi libraries.
WasapiLoopbackCapture, but not modify it. You need a virtual audio device driver to do low level stuff like that, so writing your own would be very difficult. The swapping channels part is easy - it's intercepting sound from other apps before it comes out the speakers that's not. - Mark Heath