public class SoftMixingSourceDataLine extends SoftMixingDataLine implements javax.sound.sampled.SourceDataLine
SoftMixingDataLine.AudioFloatInputStreamResampler
CHORUS_SEND, control_mutex, eff1gain, eff2gain, info, leftgain, listeners, mixer, rightgain
Modifier | Constructor and Description |
---|---|
protected |
SoftMixingSourceDataLine(SoftMixingMixer mixer,
javax.sound.sampled.DataLine.Info info) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
void |
drain() |
void |
flush() |
int |
getBufferSize() |
javax.sound.sampled.AudioFormat |
getFormat() |
int |
getFramePosition() |
float |
getLevel() |
long |
getLongFramePosition() |
long |
getMicrosecondPosition() |
boolean |
isActive() |
boolean |
isOpen() |
boolean |
isRunning() |
void |
open() |
void |
open(javax.sound.sampled.AudioFormat format) |
void |
open(javax.sound.sampled.AudioFormat format,
int bufferSize) |
protected void |
processAudioLogic(SoftAudioBuffer[] buffers) |
protected void |
processControlLogic() |
void |
start() |
void |
stop() |
int |
write(byte[] b,
int off,
int len) |
addLineListener, calcVolume, getControl, getControls, getLineInfo, isControlSupported, removeLineListener, sendEvent
protected SoftMixingSourceDataLine(SoftMixingMixer mixer, javax.sound.sampled.DataLine.Info info)
public int write(byte[] b, int off, int len)
write
in interface javax.sound.sampled.SourceDataLine
protected void processControlLogic()
processControlLogic
in class SoftMixingDataLine
protected void processAudioLogic(SoftAudioBuffer[] buffers)
processAudioLogic
in class SoftMixingDataLine
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.AudioFormat format) throws javax.sound.sampled.LineUnavailableException
open
in interface javax.sound.sampled.SourceDataLine
javax.sound.sampled.LineUnavailableException
public void open(javax.sound.sampled.AudioFormat format, int bufferSize) throws javax.sound.sampled.LineUnavailableException
open
in interface javax.sound.sampled.SourceDataLine
javax.sound.sampled.LineUnavailableException
public int available()
available
in interface javax.sound.sampled.DataLine
public void drain()
drain
in interface javax.sound.sampled.DataLine
public void flush()
flush
in interface javax.sound.sampled.DataLine
public int getBufferSize()
getBufferSize
in interface javax.sound.sampled.DataLine
public javax.sound.sampled.AudioFormat getFormat()
getFormat
in interface javax.sound.sampled.DataLine
public int getFramePosition()
getFramePosition
in interface javax.sound.sampled.DataLine
public float getLevel()
getLevel
in interface javax.sound.sampled.DataLine
public long getLongFramePosition()
getLongFramePosition
in interface javax.sound.sampled.DataLine
public long getMicrosecondPosition()
getMicrosecondPosition
in interface javax.sound.sampled.DataLine
public boolean isActive()
isActive
in interface javax.sound.sampled.DataLine
public boolean isRunning()
isRunning
in interface javax.sound.sampled.DataLine
public void start()
start
in interface javax.sound.sampled.DataLine
public void stop()
stop
in interface javax.sound.sampled.DataLine
public void close()
close
in interface java.lang.AutoCloseable
close
in interface javax.sound.sampled.Line
public boolean isOpen()
isOpen
in interface javax.sound.sampled.Line