title: Processing/Java play WAV in a playlist
body: <p>I know I've posted a similar question before but I can't seem to sort it.</p>
  
  <p>I have wrote a program which opens a WAV file, loops it forever and displays a visualizer, which is fine. </p>
  
  <p>I can select many files with the following</p>
  
  <pre><code>chooser.setMultiSelectionEnabled(true);
  </code></pre>
  
  <p>However it only plays the first WAV file and keeps looping that.</p>
  
  <p>I am new to Java but am I right thinking that the selected WAV files need to be stored in an array and need to be called separately? As I would eventually want to load 25 WAV files around 30 seconds long each)</p>
  
  <p>The code for choosing the files is below:</p>
  
  <pre><code>JFileChooser chooser = new JFileChooser();
  chooser.setMultiSelectionEnabled(true);
  chooser.setFileFilter(chooser.getAcceptAllFileFilter());
  int returnVal = chooser.showOpenDialog(null);
  minim = new Minim(this);
  player = minim.loadFile(chooser.getSelectedFile().getAbsolutePath());
  player.loop();
  fft = new FFT(player.bufferSize(), player.sampleRate());
  </code></pre>
  
  <p>Also, click order is not important at the moment as the files selected will be randomly played one after the other, forever.</p>