Multiple Audio Lines from DAC in Java

259 Views Asked by At

I am working on a live music visualization project in Java (technically Processing, but we're using Eclipse) that requires audio input from multiple mics at the same time. We had a good system going with JACK (as per the answer to this question), but I would like to be independent of JACK -- it has been flaky and I simply don't trust it in a professional setting.

However, I haven't been able to access multiple lines from my DAC within Java. I can get the Mixer that corresponds to it, open a TargetDataLine, get the data from an AudioInputStream into a buffer, but this all corresponds to the first mic only. Is there a way that I can grab a different line while remaining in Java, or will I have to do some combination of C/PortAudio-or-equivalent with JNI?

0

There are 0 best solutions below