org.tritonus.share.sampled.mixer
Class TLine
java.lang.Object
org.tritonus.share.sampled.mixer.TLine
- All Implemented Interfaces:
- Line
- Direct Known Subclasses:
- TDataLine, TMixer, TPort
- public abstract class TLine
- extends Object
- implements Line
Base class for classes implementing Line.
Nested classes inherited from class javax.sound.sampled.Line |
Line.Info |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TLine
protected TLine(TMixer mixer,
Line.Info info)
TLine
protected TLine(TMixer mixer,
Line.Info info,
Collection controls)
getMixer
protected TMixer getMixer()
getLineInfo
public Line.Info getLineInfo()
- Specified by:
getLineInfo
in interface Line
setLineInfo
protected void setLineInfo(Line.Info info)
open
public void open()
throws LineUnavailableException
- Specified by:
open
in interface Line
- Throws:
LineUnavailableException
openImpl
protected void openImpl()
throws LineUnavailableException
- Subclasses should override this method.
- Throws:
LineUnavailableException
close
public void close()
- Specified by:
close
in interface Line
closeImpl
protected void closeImpl()
- Subclasses should override this method.
isOpen
public boolean isOpen()
- Specified by:
isOpen
in interface Line
setOpen
protected void setOpen(boolean bOpen)
addControl
protected void addControl(Control control)
removeControl
protected void removeControl(Control control)
getControls
public Control[] getControls()
- Specified by:
getControls
in interface Line
getControl
public Control getControl(Control.Type controlType)
- Specified by:
getControl
in interface Line
isControlSupported
public boolean isControlSupported(Control.Type controlType)
- Specified by:
isControlSupported
in interface Line
addLineListener
public void addLineListener(LineListener listener)
- Specified by:
addLineListener
in interface Line
removeLineListener
public void removeLineListener(LineListener listener)
- Specified by:
removeLineListener
in interface Line
notifyLineEvent
protected void notifyLineEvent(LineEvent.Type type)
notifyLineEvent
protected void notifyLineEvent(LineEvent event)