I am having a great problem in my class project. I have to play multiple files in different output ports of the sound card same time. Explanation: Suppose i hav 1 speaker and 1 headphone connected to my pc. Now i hav to play 2 files in such a way that 1 song is played in speaker and other in headphone and the songs will be played in such a way that 1 user can hear only from speaker or headphone only 1 specific file.
I used javax.sound.sampled as my base programming. I could play multiple files in same time but i don't know how to play the songs in different ports of my sound card.
If any one can help me please do so.