org.tritonus.share.sampled.mixer
Class TSoftClip

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

public class TSoftClip
extends TClip
implements Runnable


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
TSoftClip(Mixer mixer, AudioFormat format)
           
 
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(AudioInputStream audioInputStream)
           
 void run()
           
 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.TClip
open
 
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

TSoftClip

public TSoftClip(Mixer mixer,
                 AudioFormat format)
          throws LineUnavailableException
Throws:
LineUnavailableException
Method Detail

open

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

getFrameLength

public int getFrameLength()
Specified by:
getFrameLength in interface Clip
Overrides:
getFrameLength in class TClip

getMicrosecondLength

public long getMicrosecondLength()
Specified by:
getMicrosecondLength in interface Clip
Overrides:
getMicrosecondLength in class TClip

setFramePosition

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

setMicrosecondPosition

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

getFramePosition

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

getMicrosecondPosition

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

setLoopPoints

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

loop

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

flush

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

drain

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

close

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

open

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

start

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

stop

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

available

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

run

public void run()
Specified by:
run in interface Runnable