I have two audio outputs in my cpu. One is meant for speakers and the other for headphones.I want to create a program in which I can choose which program is allowed to play sound in which port. So that I can put headphones in one port, and play something on the speaker connected to another port. Currently the speaker in back port goes off if I connect earphones to the other port.
PS : Don't really know which tags to choose for this. Please suggest the right tags.
I don't know what would be the correct final solution, haven't worked with the sound APIs involving other applications (manipulating sound output options of a 3rd party closed-source application) and I'm not sure if it is generally supported scenario. But some tips to get you started might be:
application specific audio output
windows open source application specific audio output
windows audio mixer api
open source configurable audio mixer for windows