title: Error playing audio file from Java via PulseAudio on Ubuntu
body: <p>The message on the shell is:</p>
  
  <pre><code>Exception in thread "main" java.lang.IllegalArgumentException: Invalid format
      at org.classpath.icedtea.pulseaudio.PulseAudioDataLine.createStream(PulseAudioDataLine.java:142)
      at org.classpath.icedtea.pulseaudio.PulseAudioDataLine.open(PulseAudioDataLine.java:99)
      at org.classpath.icedtea.pulseaudio.PulseAudioDataLine.open(PulseAudioDataLine.java:283)
      at org.classpath.icedtea.pulseaudio.PulseAudioClip.open(PulseAudioClip.java:402)
      at org.classpath.icedtea.pulseaudio.PulseAudioClip.open(PulseAudioClip.java:453)
      at reprod.ReproducirFichero(reprod.java:16)
      at reprod.main(reprod.java:44)
  </code></pre>
  
  <p>I try to download new drivers for audio, i try to reinstall openJDK 7 and openJRE 7 and also i try to install java 7.</p>
  
  <p>I have proved my code in another computer and it works, the desktop board that i use is an intel d525mw, the audio format that i´m trying to play is .wav.The version of linux that I use is Ubuntu 12.04.3.Please I need help.Thanks </p>
  
  <p>here is party of my code, and i try to play a .wav audio format</p>
  
  <pre><code>import javax.sound.sampled.*;
  
  public class reprod {
  
  public static void play(){
      try {
          Clip cl = AudioSystem.getClip();
  
          File f = new File("/home/usr/Desktop/d.wav");
          AudioInputStream ais = AudioSystem.getAudioInputStream(f);
  
          cl.open(ais);
  
          cl.start();
          System.out.println("playing...");
  
          while (cl.isRunning())
              Thread.sleep(4000);
  
  
          cl.close();
  </code></pre>
  
  <p>the version of linux that I use is Ubuntu 12.04.3</p>