org.tritonus.sampled.mixer.alsa
Class AlsaTargetDataLine

java.lang.Object
  extended by org.tritonus.share.sampled.mixer.TLine
      extended by org.tritonus.share.sampled.mixer.TDataLine
          extended by org.tritonus.share.sampled.mixer.TBaseDataLine
              extended by org.tritonus.sampled.mixer.alsa.AlsaBaseDataLine
                  extended by org.tritonus.sampled.mixer.alsa.AlsaTargetDataLine
All Implemented Interfaces:
DataLine, Line, TargetDataLine

public class AlsaTargetDataLine
extends AlsaBaseDataLine
implements TargetDataLine


Nested Class Summary
 class AlsaTargetDataLine.AlsaTargetDataLineGainControl
           
 
Nested classes/interfaces inherited from class org.tritonus.sampled.mixer.alsa.AlsaBaseDataLine
AlsaBaseDataLine.AlsaBaseDataLineGainControl
 
Nested classes/interfaces inherited from interface javax.sound.sampled.DataLine
DataLine.Info
 
Constructor Summary
AlsaTargetDataLine(AlsaDataLineMixer mixer, AudioFormat format, int nBufferSize)
           
 
Method Summary
 int available()
           
 void drain()
           
 void flush()
           
 long getPosition()
           
 int read(byte[] abData, int nOffset, int nLength)
           
 int readImpl(byte[] abData, int nOffset, int nLength)
           
 
Methods inherited from class org.tritonus.share.sampled.mixer.TBaseDataLine
open, open
 
Methods inherited from class org.tritonus.share.sampled.mixer.TDataLine
getBufferSize, getFormat, getFramePosition, getLevel, getLongFramePosition, getMicrosecondPosition, isActive, isRunning, start, 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.TargetDataLine
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

AlsaTargetDataLine

public AlsaTargetDataLine(AlsaDataLineMixer mixer,
                          AudioFormat format,
                          int nBufferSize)
                   throws LineUnavailableException
Throws:
LineUnavailableException
Method Detail

available

public int available()
Specified by:
available in interface DataLine
Overrides:
available in class AlsaBaseDataLine

read

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

readImpl

public int readImpl(byte[] abData,
                    int nOffset,
                    int nLength)

drain

public void drain()
Specified by:
drain in interface DataLine
Overrides:
drain in class AlsaBaseDataLine

flush

public void flush()
Specified by:
flush in interface DataLine
Overrides:
flush in class AlsaBaseDataLine

getPosition

public long getPosition()