title: Java Sound format not supported
body: <p>When using the following code: <a href="http://pastebin.com/5iVnttiP" rel="noreferrer">http://pastebin.com/5iVnttiP</a></p>
  
  <p>I receive this error:</p>
  
  <pre><code>javax.sound.sampled.LineUnavailableException: line with format PCM_SIGNED 16000.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian not supported.
      at com.sun.media.sound.DirectAudioDevice$DirectDL.implOpen(Unknown Source)
      at com.sun.media.sound.AbstractDataLine.open(Unknown Source)
      at com.sun.media.sound.AbstractDataLine.open(Unknown Source)
      at com.AIComputer.model.Recorder.&lt;init&gt;(Recorder.java:124)
      at com.AIComputer.AIComputer.main(AIComputer.java:7)
  </code></pre>
  
  <p>Now I did some research and found out that not all sound cards support every format, however when running this demo: <a href="http://java.sun.com/products/java-media/sound/samples/JavaSoundDemo/" rel="noreferrer">http://java.sun.com/products/java-media/sound/samples/JavaSoundDemo/</a>
  I managed to produce a recording using the exact same parameters (linear, 16000, 16, signed, little endian, stereo).</p>
  
  <p>I have no idea what I'm doing wrong here (also since I'm still a beginner at Java coding).</p>
  
  <p>Any help will be greatly appreciated!</p>