Code example for SourceDataLine

Methods: stop

0
  @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) {}
    } 
  } 
 
  public byte[] convertMonoToStereo (byte[] data, int bytesRead)
  { 
    byte[] tempData = new byte[bytesRead * 2];
    if (format.getSampleSizeInBits() == 8) {
      for (int ii = 0; ii < bytesRead; ii++) {
        byte b = data[ii];