title: Java applet play multiple .wav files
body: <p>Hello I am trying to create a simple game, and right now I am trying to add a couple songs to play in the background during the game, which can be stopped and skipped as the player wishes. It seems everywhere I look I can't seem to make the example code work. and the only example that does work can only play one file either in a loop or not.</p>
  
  <pre><code>public void loadmedia ()
  {
      song1 = getAudioClip (getCodeBase (), "song1.au");
      song1.play ();
  
      song2 = getAudioClip (getCodeBase (), "song2.au");
              song2.play ();
  }
  </code></pre>
  
  <p>song1 will play normally but song2 will do nothing, even if I tell song 1 to stop with a button and play song2.</p>