org.tritonus.share.sampled.mixer
Class TDataLine

java.lang.Object
  extended by org.tritonus.share.sampled.mixer.TLine
      extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.sound.sampled.DataLine
DataLine.Info
 
Constructor Summary
TDataLine(TMixer mixer, DataLine.Info info)
           
TDataLine(TMixer mixer, DataLine.Info info, java.util.Collection<Control> controls)
           
 
Method Summary
 int getBufferSize()
           
 AudioFormat getFormat()
           
 int getFramePosition()
           
 float getLevel()
           
 long getLongFramePosition()
           
 long getMicrosecondPosition()
           
 boolean isActive()
          This implementation returns the status of isRunning().
 boolean isRunning()
           
 void start()
           
 void stop()
           
 
Methods inherited from class org.tritonus.share.sampled.mixer.TLine
addLineListener, close, getControl, getControls, getLineInfo, isControlSupported, isOpen, open, removeLineListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.sound.sampled.DataLine
available, drain, flush
 
Methods inherited from interface javax.sound.sampled.Line
addLineListener, close, getControl, getControls, getLineInfo, isControlSupported, isOpen, open, removeLineListener
 

Constructor Detail

TDataLine

public TDataLine(TMixer mixer,
                 DataLine.Info info)

TDataLine

public TDataLine(TMixer mixer,
                 DataLine.Info info,
                 java.util.Collection<Control> controls)
Method Detail

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