public abstract class SoftMixingDataLine
extends java.lang.Object
implements javax.sound.sampled.DataLine
Modifier and Type | Class and Description |
---|---|
protected static class |
SoftMixingDataLine.AudioFloatInputStreamResampler |
Modifier and Type | Field and Description |
---|---|
static javax.sound.sampled.FloatControl.Type |
CHORUS_SEND |
protected java.lang.Object |
control_mutex |
protected float |
eff1gain |
protected float |
eff2gain |
protected javax.sound.sampled.DataLine.Info |
info |
protected float |
leftgain |
protected java.util.List<javax.sound.sampled.LineListener> |
listeners |
protected SoftMixingMixer |
mixer |
protected float |
rightgain |
Modifier | Constructor and Description |
---|---|
protected |
SoftMixingDataLine(SoftMixingMixer mixer,
javax.sound.sampled.DataLine.Info info) |
Modifier and Type | Method and Description |
---|---|
void |
addLineListener(javax.sound.sampled.LineListener listener) |
protected void |
calcVolume() |
javax.sound.sampled.Control |
getControl(javax.sound.sampled.Control.Type control) |
javax.sound.sampled.Control[] |
getControls() |
javax.sound.sampled.Line.Info |
getLineInfo() |
boolean |
isControlSupported(javax.sound.sampled.Control.Type control) |
protected abstract void |
processAudioLogic(SoftAudioBuffer[] buffers) |
protected abstract void |
processControlLogic() |
void |
removeLineListener(javax.sound.sampled.LineListener listener) |
protected void |
sendEvent(javax.sound.sampled.LineEvent event) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static final javax.sound.sampled.FloatControl.Type CHORUS_SEND
protected float leftgain
protected float rightgain
protected float eff1gain
protected float eff2gain
protected java.util.List<javax.sound.sampled.LineListener> listeners
protected java.lang.Object control_mutex
protected SoftMixingMixer mixer
protected javax.sound.sampled.DataLine.Info info
protected SoftMixingDataLine(SoftMixingMixer mixer, javax.sound.sampled.DataLine.Info info)
protected abstract void processControlLogic()
protected abstract void processAudioLogic(SoftAudioBuffer[] buffers)
protected void calcVolume()
protected void sendEvent(javax.sound.sampled.LineEvent event)
public void addLineListener(javax.sound.sampled.LineListener listener)
addLineListener
in interface javax.sound.sampled.Line
public void removeLineListener(javax.sound.sampled.LineListener listener)
removeLineListener
in interface javax.sound.sampled.Line
public javax.sound.sampled.Line.Info getLineInfo()
getLineInfo
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 boolean isControlSupported(javax.sound.sampled.Control.Type control)
isControlSupported
in interface javax.sound.sampled.Line