Code example for SourceDataLine

Methods: drain

0
  } 
 
  @Override 
  protected void flushImpl() { 
    if (source != null) {
      source.drain();
    } 
  } 
 
  public long getFramePosition() { 
    return (source != null) ? source.getLongFramePosition() : 0;
  } 
 
  public int getSamplesPerSecond() { 
    return samplesPerSecond;
  } 
 
  public SourceDataLine getSource() {
    return source;
  }