How to sample multichannel sound input in Java
I realize that this may be a relative niche, but maybe that's why it's a good question anyway I am looking for a hardware multi input recording console (such as Alex IO 26) to receive adat lightpipe 8-channel input for signal processing Since I haven't got the device yet and need to find out whether this is feasible (budget problem), I'd like to ask if anyone has any experience to get all eight data inputs in Java? I've seen a lot of using javax sound. The sampled library is an example of recording sound, but I can't find any multichannel information more than 2 I'm interested in sampling 8 channels as a single channel source to perform some simple DSP on them Will the hardware device be considered a mixer? 8 channels are represented as 8 lines? I hope my terminology is appropriate
I would appreciate it if anyone could point out any relevant information to me thank you!
Solution
According to the Java version you are running, the platform you are running and the type of sound card you are running, you can implement multi-channel audio in Java Check out the excellent Java audio FAQ for more details I have never been able to reliably use it on all platforms
If you really care about powerful multichannel audio, I recommend using C APIs, such as portaudio, justice or pulseaudio
I had good luck with portaudio and justice
To use them in Java, you need to create a JNI interface to the C API
This is obviously better than using javax Sound works more, but it gives you better control over the audio hardware you are using According to my experience in dealing with audio devices, being too far away from the hardware (i.e. 4 layers of abstraction rather than 2 layers) usually makes you unable to make serious multi-channel, high bit depth and high sampling rate audio