I'm opening multiple audio files as instances of Clip
by calling the following method for each audio file:
final Mixer.Info[] mixerInfo = AudioSystem.getMixerInfo();
final AudioInputStream audioInputStream = AudioSystem.getAudioInputStream(audioStream);
final Clip clip = AudioSystem.getClip(mixerInfo[selectedMixerIdx]);
clip.open(audioInputStream);
However, when running this on certain machines I get LineUnavailableException
after opening a few files.
I'm new to the Java Sound API, so I might be completely on the wrong path; but is there any way to see the max number of Clips the Mixer can handle?