org.tritonus.sampled.mixer.esd
Class EsdClip

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

public class EsdClip
extends TDataLine
implements Clip


Nested Class Summary
 
Nested classes inherited from class javax.sound.sampled.DataLine
DataLine.Info
 
Field Summary
 
Fields inherited from interface javax.sound.sampled.Clip
LOOP_CONTINUOUSLY
 
Constructor Summary
EsdClip(TMixer mixer)
           
 
Method Summary
 int available()
           
 void close()
           
 void drain()
           
 void flush()
           
 int getFrameLength()
           
 int getFramePosition()
           
 long getMicrosecondLength()
           
 long getMicrosecondPosition()
           
 void loop(int nCount)
           
 void open()
           
 void open(AudioFormat audioFormat, byte[] abData, int nOffset, int nNumFrames)
           
 void open(AudioInputStream audioInputStream)
           
 void setFramePosition(int nPosition)
           
 void setLoopPoints(int nStart, int nEnd)
           
 void setMicrosecondPosition(long lPosition)
           
 void start()
           
 void stop()
           
 
Methods inherited from class org.tritonus.share.sampled.mixer.TDataLine
checkOpen, getBufferSize, getDefaultBufferSize, getFormat, getLevel, isActive, isRunning, notifyLineEvent, setBufferSize, setFormat, setRunning, startImpl, stopImpl
 
Methods inherited from class org.tritonus.share.sampled.mixer.TLine
addControl, addLineListener, closeImpl, getControl, getControls, getLineInfo, getMixer, isControlSupported, isOpen, notifyLineEvent, openImpl, removeControl, removeLineListener, setLineInfo, setOpen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.sound.sampled.DataLine
getBufferSize, getFormat, getLevel, isActive, isRunning
 
Methods inherited from interface javax.sound.sampled.Line
addLineListener, getControl, getControls, getLineInfo, isControlSupported, isOpen, removeLineListener
 

Constructor Detail

EsdClip

public EsdClip(TMixer mixer)
Method Detail

open

public void open(AudioFormat audioFormat,
                 byte[] abData,
                 int nOffset,
                 int nNumFrames)
          throws LineUnavailableException
Specified by:
open in interface Clip
Throws:
LineUnavailableException

open

public void open(AudioInputStream audioInputStream)
          throws LineUnavailableException,
                 IOException
Specified by:
open in interface Clip
Throws:
LineUnavailableException
IOException

getFrameLength

public int getFrameLength()
Specified by:
getFrameLength in interface Clip

getMicrosecondLength

public long getMicrosecondLength()
Specified by:
getMicrosecondLength in interface Clip

setFramePosition

public void setFramePosition(int nPosition)
Specified by:
setFramePosition in interface Clip

setMicrosecondPosition

public void setMicrosecondPosition(long lPosition)
Specified by:
setMicrosecondPosition in interface Clip

getFramePosition

public int getFramePosition()
Specified by:
getFramePosition in interface DataLine
Overrides:
getFramePosition in class TDataLine

getMicrosecondPosition

public long getMicrosecondPosition()
Specified by:
getMicrosecondPosition in interface DataLine
Overrides:
getMicrosecondPosition in class TDataLine

setLoopPoints

public void setLoopPoints(int nStart,
                          int nEnd)
Specified by:
setLoopPoints in interface Clip

loop

public void loop(int nCount)
Specified by:
loop in interface Clip

flush

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

drain

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

close

public void close()
Specified by:
close in interface Line
Overrides:
close in class TLine

open

public void open()
Specified by:
open in interface Line
Overrides:
open in class TLine

start

public void start()
Specified by:
start in interface DataLine
Overrides:
start in class TDataLine

stop

public void stop()
Specified by:
stop in interface DataLine
Overrides:
stop in class TDataLine

available

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