org.tritonus.sampled.mixer.esd
Class EsdSourceDataLine

java.lang.Object
  extended byorg.tritonus.share.sampled.mixer.TLine
      extended byorg.tritonus.share.sampled.mixer.TDataLine
          extended byorg.tritonus.share.sampled.mixer.TBaseDataLine
              extended byorg.tritonus.sampled.mixer.esd.EsdSourceDataLine
All Implemented Interfaces:
DataLine, Line, SourceDataLine

public class EsdSourceDataLine
extends TBaseDataLine
implements SourceDataLine


Nested Class Summary
 class EsdSourceDataLine.EsdSourceDataLineGainControl
           
 class EsdSourceDataLine.EsdSourceDataLineMuteControl
           
 class EsdSourceDataLine.EsdSourceDataLinePanControl
           
 
Nested classes inherited from class javax.sound.sampled.DataLine
DataLine.Info
 
Constructor Summary
EsdSourceDataLine(TMixer mixer, AudioFormat format, int nBufferSize)
           
 
Method Summary
 int available()
           
protected  void closeImpl()
          Subclasses should override this method.
 void drain()
           
 void flush()
           
protected  void openImpl()
          Subclasses should override this method.
 int write(byte[] abData, int nOffset, int nLength)
           
 
Methods inherited from class org.tritonus.share.sampled.mixer.TBaseDataLine
finalize, open, open
 
Methods inherited from class org.tritonus.share.sampled.mixer.TDataLine
checkOpen, getBufferSize, getDefaultBufferSize, getFormat, getFramePosition, getLevel, getMicrosecondPosition, isActive, isRunning, notifyLineEvent, setBufferSize, setFormat, setRunning, start, startImpl, stop, stopImpl
 
Methods inherited from class org.tritonus.share.sampled.mixer.TLine
addControl, addLineListener, close, getControl, getControls, getLineInfo, getMixer, isControlSupported, isOpen, notifyLineEvent, open, removeControl, removeLineListener, setLineInfo, setOpen
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.sound.sampled.SourceDataLine
open, open
 
Methods inherited from interface javax.sound.sampled.DataLine
getBufferSize, getFormat, getFramePosition, getLevel, getMicrosecondPosition, isActive, isRunning, start, stop
 
Methods inherited from interface javax.sound.sampled.Line
addLineListener, close, getControl, getControls, getLineInfo, isControlSupported, isOpen, open, removeLineListener
 

Constructor Detail

EsdSourceDataLine

public EsdSourceDataLine(TMixer mixer,
                         AudioFormat format,
                         int nBufferSize)
                  throws LineUnavailableException
Throws:
LineUnavailableException
Method Detail

openImpl

protected void openImpl()
Description copied from class: TLine
Subclasses should override this method.

Overrides:
openImpl in class TLine

available

public int available()
Specified by:
available in interface DataLine

write

public int write(byte[] abData,
                 int nOffset,
                 int nLength)
Specified by:
write in interface SourceDataLine

closeImpl

protected void closeImpl()
Description copied from class: TLine
Subclasses should override this method.

Overrides:
closeImpl in class TLine

drain

public void drain()
Specified by:
drain in interface DataLine

flush

public void flush()
Specified by:
flush in interface DataLine