title: Trouble playing wav in Java
body: <p>I'm trying to play a</p>
  
  <pre><code>PCM_UNSIGNED 11025.0 Hz, 8 bit, mono, 1 bytes/frame
  </code></pre>
  
  <p>file as described <a href="https://stackoverflow.com/questions/26305/how-can-i-play-sound-in-java/26311#26311">here (1)</a> and <a href="https://stackoverflow.com/questions/26305/how-can-i-play-sound-in-java/26318#26318">here(2)</a>.</p>
  
  <p>The first approach works, but I don't want to depend on <code>sun.*</code> stuff. The second results in just some leading frames being played, that sounds more like a click. Can't be an IO issue as I'm playing from a ByteArrayInputStream.</p>
  
  <p>Plz share your ideas on why might this happen. TIA.</p>