public class SoftMixingMixer
extends java.lang.Object
implements javax.sound.sampled.Mixer
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
control_mutex |
protected boolean |
implicitOpen |
protected static javax.sound.sampled.Mixer.Info |
info |
protected static java.lang.String |
INFO_DESCRIPTION |
protected static java.lang.String |
INFO_NAME |
protected static java.lang.String |
INFO_VENDOR |
protected static java.lang.String |
INFO_VERSION |
Constructor and Description |
---|
SoftMixingMixer() |
Modifier and Type | Method and Description |
---|---|
void |
addLineListener(javax.sound.sampled.LineListener listener) |
void |
close() |
javax.sound.sampled.Control |
getControl(javax.sound.sampled.Control.Type control) |
protected float |
getControlRate() |
javax.sound.sampled.Control[] |
getControls() |
javax.sound.sampled.AudioFormat |
getFormat() |
long |
getLatency() |
javax.sound.sampled.Line |
getLine(javax.sound.sampled.Line.Info info) |
javax.sound.sampled.Line.Info |
getLineInfo() |
protected SoftMixingMainMixer |
getMainMixer() |
int |
getMaxLines(javax.sound.sampled.Line.Info info) |
javax.sound.sampled.Mixer.Info |
getMixerInfo() |
javax.sound.sampled.Line.Info[] |
getSourceLineInfo() |
javax.sound.sampled.Line.Info[] |
getSourceLineInfo(javax.sound.sampled.Line.Info info) |
javax.sound.sampled.Line[] |
getSourceLines() |
javax.sound.sampled.Line.Info[] |
getTargetLineInfo() |
javax.sound.sampled.Line.Info[] |
getTargetLineInfo(javax.sound.sampled.Line.Info info) |
javax.sound.sampled.Line[] |
getTargetLines() |
boolean |
isControlSupported(javax.sound.sampled.Control.Type control) |
boolean |
isLineSupported(javax.sound.sampled.Line.Info info) |
boolean |
isOpen() |
boolean |
isSynchronizationSupported(javax.sound.sampled.Line[] lines,
boolean maintainSync) |
void |
open() |
void |
open(javax.sound.sampled.SourceDataLine line) |
javax.sound.sampled.AudioInputStream |
openStream(javax.sound.sampled.AudioFormat targetFormat) |
void |
removeLineListener(javax.sound.sampled.LineListener listener) |
void |
synchronize(javax.sound.sampled.Line[] lines,
boolean maintainSync) |
void |
unsynchronize(javax.sound.sampled.Line[] lines) |
protected static final java.lang.String INFO_NAME
protected static final java.lang.String INFO_VENDOR
protected static final java.lang.String INFO_DESCRIPTION
protected static final java.lang.String INFO_VERSION
protected static final javax.sound.sampled.Mixer.Info info
protected java.lang.Object control_mutex
protected boolean implicitOpen
public javax.sound.sampled.Line getLine(javax.sound.sampled.Line.Info info) throws javax.sound.sampled.LineUnavailableException
getLine
in interface javax.sound.sampled.Mixer
javax.sound.sampled.LineUnavailableException
public int getMaxLines(javax.sound.sampled.Line.Info info)
getMaxLines
in interface javax.sound.sampled.Mixer
public javax.sound.sampled.Mixer.Info getMixerInfo()
getMixerInfo
in interface javax.sound.sampled.Mixer
public javax.sound.sampled.Line.Info[] getSourceLineInfo()
getSourceLineInfo
in interface javax.sound.sampled.Mixer
public javax.sound.sampled.Line.Info[] getSourceLineInfo(javax.sound.sampled.Line.Info info)
getSourceLineInfo
in interface javax.sound.sampled.Mixer
public javax.sound.sampled.Line[] getSourceLines()
getSourceLines
in interface javax.sound.sampled.Mixer
public javax.sound.sampled.Line.Info[] getTargetLineInfo()
getTargetLineInfo
in interface javax.sound.sampled.Mixer
public javax.sound.sampled.Line.Info[] getTargetLineInfo(javax.sound.sampled.Line.Info info)
getTargetLineInfo
in interface javax.sound.sampled.Mixer
public javax.sound.sampled.Line[] getTargetLines()
getTargetLines
in interface javax.sound.sampled.Mixer
public boolean isLineSupported(javax.sound.sampled.Line.Info info)
isLineSupported
in interface javax.sound.sampled.Mixer
public boolean isSynchronizationSupported(javax.sound.sampled.Line[] lines, boolean maintainSync)
isSynchronizationSupported
in interface javax.sound.sampled.Mixer
public void synchronize(javax.sound.sampled.Line[] lines, boolean maintainSync)
synchronize
in interface javax.sound.sampled.Mixer
public void unsynchronize(javax.sound.sampled.Line[] lines)
unsynchronize
in interface javax.sound.sampled.Mixer
public void addLineListener(javax.sound.sampled.LineListener listener)
addLineListener
in interface javax.sound.sampled.Line
public void close()
close
in interface java.lang.AutoCloseable
close
in interface javax.sound.sampled.Line
public javax.sound.sampled.Control getControl(javax.sound.sampled.Control.Type control)
getControl
in interface javax.sound.sampled.Line
public javax.sound.sampled.Control[] getControls()
getControls
in interface javax.sound.sampled.Line
public javax.sound.sampled.Line.Info getLineInfo()
getLineInfo
in interface javax.sound.sampled.Line
public boolean isControlSupported(javax.sound.sampled.Control.Type control)
isControlSupported
in interface javax.sound.sampled.Line
public boolean isOpen()
isOpen
in interface javax.sound.sampled.Line
public void open() throws javax.sound.sampled.LineUnavailableException
open
in interface javax.sound.sampled.Line
javax.sound.sampled.LineUnavailableException
public void open(javax.sound.sampled.SourceDataLine line) throws javax.sound.sampled.LineUnavailableException
javax.sound.sampled.LineUnavailableException
public javax.sound.sampled.AudioInputStream openStream(javax.sound.sampled.AudioFormat targetFormat) throws javax.sound.sampled.LineUnavailableException
javax.sound.sampled.LineUnavailableException
public void removeLineListener(javax.sound.sampled.LineListener listener)
removeLineListener
in interface javax.sound.sampled.Line
public long getLatency()
public javax.sound.sampled.AudioFormat getFormat()
protected float getControlRate()
protected SoftMixingMainMixer getMainMixer()