Playing Audio Clip using Applet

  1. span style="color: #006699;">java.applet.*java.applet.AudioClip.*"computer.wav""ding.wav");
  2. ac1.play();
  3. ac2.loop();
  4. ac2.play();
  5. ac1.loop();
  6. }
  7. }
  1. <applet code="audio1.class" width=50 height=500></applet>