Code example for SourceDataLine

Methods: addLineListener

0
    dataLine.removeLineListener(listener);
  } 
 
  @Override public void addLineListener (LineListener listener)
  { 
    dataLine.addLineListener(listener);
  } 
 
  @Override public Control getControl (Control.Type control)
  { 
    return dataLine.getControl(control);
  } 
 
  @Override public Control[] getControls ()
  { 
    if (dataLine == null) {
      return new Control[0];
    } else { 
      return dataLine.getControls();
    } 
Experience pair programming with AI  Get Codota for Java