Code example for SourceDataLine

Methods: isOpen

0
    return dataLine.isRunning();
  } 
 
  @Override public boolean isOpen () 
  { 
    return dataLine.isOpen();
  } 
 
  @Override public void stop () 
  { 
    //PlayN.log().debug("BigClip.stop()"); 
    active = false;
    // why did I have this commented out? 
    dataLine.stop();
    if (thread != null) {
      try { 
        active = false;
        thread.join();
      } catch (InterruptedException wakeAndContinue) {}
    }