public synchronized void close(){
  if (currentClip != null) {
    currentClip.drain();
    if (drainDelay > 0L) {
      try {
        Thread.sleep(drainDelay);
      }
 catch (      InterruptedException e) {
      }
    }
    currentClip.close();
  }
  notifyAll();
}

public synchronized void close ( ) { if ( currentClip != null ) { currentClip . drain ( ) ; if ( drainDelay > 0L ) { try { Thread . sleep ( drainDelay ) ; } catch ( InterruptedException e ) { } } currentClip . close ( ) ; } notifyAll ( ) ; }
closes this audio player < p / > [ [ [ workaround todo the javax . sound . sampled drain is almost working properly . on linux , there is still a little bit of sound that needs to go out , even after drain is called . thus , the draindelay . we wait for a few hundred milliseconds while the data is really drained out of the system ] ] ]
