org.tritonus.share.sampled.mixer
Class TMixer
java.lang.Object
org.tritonus.share.sampled.mixer.TLine
org.tritonus.share.sampled.mixer.TMixer
- All Implemented Interfaces:
- Line, Mixer
public abstract class TMixer
- extends TLine
- implements Mixer
| Nested classes/interfaces inherited from interface javax.sound.sampled.Mixer |
Mixer.Info |
| Methods inherited from class org.tritonus.share.sampled.mixer.TLine |
addControl, addLineListener, close, closeImpl, getControl, getControls, getLineInfo, getMixer, isControlSupported, isOpen, notifyLineEvent, notifyLineEvent, open, openImpl, removeControl, removeLineListener, setLineInfo, setOpen |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TMixer
protected TMixer(Mixer.Info mixerInfo,
Line.Info lineInfo)
- Constructor for mixers that use setSupportInformation().
TMixer
protected TMixer(Mixer.Info mixerInfo,
Line.Info lineInfo,
Collection<AudioFormat> supportedSourceFormats,
Collection<AudioFormat> supportedTargetFormats,
Collection<Line.Info> supportedSourceLineInfos,
Collection<Line.Info> supportedTargetLineInfos)
- Constructor for mixers.
setSupportInformation
protected void setSupportInformation(Collection<AudioFormat> supportedSourceFormats,
Collection<AudioFormat> supportedTargetFormats,
Collection<Line.Info> supportedSourceLineInfos,
Collection<Line.Info> supportedTargetLineInfos)
getMixerInfo
public Mixer.Info getMixerInfo()
- Specified by:
getMixerInfo in interface Mixer
getSourceLineInfo
public Line.Info[] getSourceLineInfo()
- Specified by:
getSourceLineInfo in interface Mixer
getTargetLineInfo
public Line.Info[] getTargetLineInfo()
- Specified by:
getTargetLineInfo in interface Mixer
getSourceLineInfo
public Line.Info[] getSourceLineInfo(Line.Info info)
- Specified by:
getSourceLineInfo in interface Mixer
getTargetLineInfo
public Line.Info[] getTargetLineInfo(Line.Info info)
- Specified by:
getTargetLineInfo in interface Mixer
isLineSupported
public boolean isLineSupported(Line.Info info)
- Specified by:
isLineSupported in interface Mixer
getLine
public Line getLine(Line.Info info)
throws LineUnavailableException
- Specified by:
getLine in interface Mixer
- Throws:
LineUnavailableException
getSourceDataLine
protected SourceDataLine getSourceDataLine(AudioFormat format,
int nBufferSize)
throws LineUnavailableException
- Throws:
LineUnavailableException
getClip
protected Clip getClip(AudioFormat format)
throws LineUnavailableException
- Throws:
LineUnavailableException
getTargetDataLine
protected TargetDataLine getTargetDataLine(AudioFormat format,
int nBufferSize)
throws LineUnavailableException
- Throws:
LineUnavailableException
getPort
protected Port getPort(Port.Info info)
throws LineUnavailableException
- Throws:
LineUnavailableException
getSourceLines
public Line[] getSourceLines()
- Specified by:
getSourceLines in interface Mixer
getTargetLines
public Line[] getTargetLines()
- Specified by:
getTargetLines in interface Mixer
synchronize
public void synchronize(Line[] aLines,
boolean bMaintainSync)
- Specified by:
synchronize in interface Mixer
unsynchronize
public void unsynchronize(Line[] aLines)
- Specified by:
unsynchronize in interface Mixer
isSynchronizationSupported
public boolean isSynchronizationSupported(Line[] aLines,
boolean bMaintainSync)
- Specified by:
isSynchronizationSupported in interface Mixer
isSourceFormatSupported
protected boolean isSourceFormatSupported(AudioFormat format)
isTargetFormatSupported
protected boolean isTargetFormatSupported(AudioFormat format)
Copyright © 2012. All Rights Reserved.