org.tritonus.share.sampled.mixer
Class TDataLine
java.lang.Object
org.tritonus.share.sampled.mixer.TLine
org.tritonus.share.sampled.mixer.TDataLine
- All Implemented Interfaces:
- DataLine, Line
- Direct Known Subclasses:
- EsdClip, TBaseDataLine, TClip
public abstract class TDataLine
- extends TLine
- implements DataLine
Base class for classes implementing DataLine.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TDataLine
public TDataLine(TMixer mixer,
DataLine.Info info)
TDataLine
public TDataLine(TMixer mixer,
DataLine.Info info,
java.util.Collection<Control> controls)
start
public void start()
- Specified by:
start
in interface DataLine
stop
public void stop()
- Specified by:
stop
in interface DataLine
isRunning
public boolean isRunning()
- Specified by:
isRunning
in interface DataLine
isActive
public boolean isActive()
- This implementation returns the status of isRunning().
Subclasses should overwrite this method if there is more
precise information about the status of the line available.
- Specified by:
isActive
in interface DataLine
getFormat
public AudioFormat getFormat()
- Specified by:
getFormat
in interface DataLine
getBufferSize
public int getBufferSize()
- Specified by:
getBufferSize
in interface DataLine
getFramePosition
public int getFramePosition()
- Specified by:
getFramePosition
in interface DataLine
getLongFramePosition
public long getLongFramePosition()
getMicrosecondPosition
public long getMicrosecondPosition()
- Specified by:
getMicrosecondPosition
in interface DataLine
getLevel
public float getLevel()
- Specified by:
getLevel
in interface DataLine