I'm not sure what background you have when working with sound (it may be larger than mine), but I think that you have several lines that you want to route to several ports? http://download.oracle.com/javase/7/docs/api/javax/sound/sampled/package-summary.html - This may be an API for this that I know little about (I saw that the program uses something like this with VoIP). By the way, if I work in Windows, I believe that some information about your sound card is stored in the registry, and you may need to update the registry from the program in order to access it (not sure).
I hope I somehow helped :)
source
share