code: private Clip loadSound(String pName) {
          try {
              java.net.URL soundurl = ResourceManager.class.getResource("/res/" + pName + ".wav");
              AudioInputStream s = AudioSystem.getAudioInputStream(soundurl);
              Clip snd = AudioSystem.getClip();
              snd.open(s);
              mSounds.put(pName, snd);
              return snd;
          } catch (Exception e) {
              LOGGER.error("Unable to load sound " + pName + ".");
              return null;
          }
      }
docs: /*
  private Mixer getMixer()
  {
  Info[] mixerInfo = AudioSystem.getMixerInfo();
  int i = 0;
  boolean present = false;
  
  while(i < mixerInfo.length && !present)
  {
  if(mixerInfo[i].getName().contains("Java"))
  {
  present = true;
  }
  else
  {
  ++i;
  }
  }
  
  if(present)
  {
  return AudioSystem.getMixer(mixerInfo[i]);
  }
  else
  {
  return null;
  }
  }
  
  private Clip getClip(Mixer pMixer, AudioInputStream pStream)
  {
  DataLine.Info lineInfo = new DataLine.Info(Clip.class, pStream.getFormat());
  try
  {
  return (Clip)AudioSystem.getLine(lineInfo);
  }
  catch (LineUnavailableException e)
  {
  return null;
  }
  }