clipsInJar: playing sound clips from a JAR

This directory illustrates a way to play small sound clips (e.g. sound effects) that are packaged in the JAR file (as opposed to being read from the local file system.)

Including sounds in the JAR is necessary if you want your code to be able to work under JWS.

There are two essential parts to this:

  1. The part that goes in the build.xml, where we copy the sound files into the JAR
  2. The part in the code that accesses the sound files from the JAR and plays them.