Java - Trouble combining more than 2 .wav files
for a project I'm working on, I want to be able to concatenate multiple .wav files. Through my research I was able to come up with this code: File sample1 = new File("F:\\Programming\\Resources\\Java_Sound\\trumpet1.wav"); File sample2 = new File("F:\\Programming\\Resources\\Java_Sound\\trumpet2.wav"); File fileOut = new File("F:\\Programming\\Resources\\Java_Sound\\Test.wav"); AudioInputStream audio1 = AudioSystem.getAudioInputStream(sample1); AudioInputStream audio2 = AudioSystem.getAudioInputStream(sample2); AudioInputStream audioBuild = new AudioInputStream(new SequenceInputStream(audio1,