not able to play different audio through different output devices

I am trying to develop an app that uses three different files at the same time.

1. Video

2. Audio 1 (for the headphones or speakers)

3. Audio 2 (for the Analog device that converts the sound into analog signals.)

Both the audios are different. I did alot of research regarding this and found that normally audio can be played through default device selected in MacOS that is either of them or same audio can be played through more than one output device by making a group of them. But the issue is that we are not able to play different audio through different output devices and neither we are getting any help on google.



I dug more into the project that someone developed earlier, in which I found that it is using some third-party library/code to accomplish it i.e QTFramework -> phonon class. I installed it on my mac and it's asking to install XCODE which I already have.


Please, can you suggest the best way to overcome the situation as I have a quick delivery to make?


Thanks,