title: Problem with Javas Audio Clips on frequent playback of beep sounds
body: <p>I want to playback short beep sounds (WAV files) on success and error of a GUI triggered action.</p>
  
  <p>I came across <a href="http://download.oracle.com/javase/1.5.0/docs/api/javax/sound/sampled/Clip.html" rel="nofollow">javax.sound.sampled.Clip</a>, which seemed to work.
  Here is the basic code I use:</p>
  
  <pre><code>clip.stop();
  clip.setFramePosition(0);
  clip.start();
  </code></pre>
  
  <p>This is executed after a button click triggers a database action. On success and error two different preloaded Clips are played.</p>
  
  <p>But on the production machine (an old PC running Kubuntu 10.4) after some time (around 400+ executions or 2-4 hours) the clip refuses to play.
  The stop method takes around 3 seconds to terminate and the following start action does not play any sound. Every following invocation of the code fails then without throwing exception or any other feedback.
  The only thing, that fixes this, is restarting the whole application.</p>
  
  <p>My questions are:
  Is there any workaround for this? Does anyone else have the same problem? Or is there another framework I can use to play at least two different sounds (the Toolkit.beep() can only play one sound).</p>