Code example for SourceDataLine

Methods: getLongFramePosition

0
      source.drain();
    } 
  } 
 
  public long getFramePosition() { 
    return (source != null) ? source.getLongFramePosition() : 0;
  } 
 
  public int getSamplesPerSecond() { 
    return samplesPerSecond;
  } 
 
  public SourceDataLine getSource() {
    return source;
  } 
 
  @Override 
  public int getPosition() { 
    return source != null ? source.getFramePosition() : 0;
  } 
Connect your IDE to all the code out there  Get Codota for Java