org.tritonus.share.sampled.mixer
Class TClip
java.lang.Object
org.tritonus.share.sampled.mixer.TLine
org.tritonus.share.sampled.mixer.TDataLine
org.tritonus.share.sampled.mixer.TClip
- All Implemented Interfaces:
- Clip, DataLine, Line
- Direct Known Subclasses:
- TSoftClip
public class TClip
- extends TDataLine
- implements Clip
| Methods inherited from class org.tritonus.share.sampled.mixer.TDataLine |
getBufferSize, getDefaultBufferSize, getFormat, getLevel, getLongFramePosition, checkOpen, 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 |
TClip
public TClip(DataLine.Info info)
TClip
public TClip(DataLine.Info info,
Collection<Control> controls)
open
public void open(AudioFormat audioFormat,
byte[] abData,
int nOffset,
int nLength)
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
Copyright © 2012. All Rights Reserved.