public class SoftMixingClip extends SoftMixingDataLine implements javax.sound.sampled.Clip
SoftMixingDataLine.AudioFloatInputStreamResampler
CHORUS_SEND, control_mutex, eff1gain, eff2gain, info, leftgain, listeners, mixer, rightgain
Modifier | Constructor and Description |
---|---|
protected |
SoftMixingClip(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 |
getFrameLength() |
int |
getFramePosition() |
float |
getLevel() |
long |
getLongFramePosition() |
long |
getMicrosecondLength() |
long |
getMicrosecondPosition() |
boolean |
isActive() |
boolean |
isOpen() |
boolean |
isRunning() |
void |
loop(int count) |
void |
open() |
void |
open(javax.sound.sampled.AudioFormat format,
byte[] data,
int offset,
int bufferSize) |
void |
open(javax.sound.sampled.AudioInputStream stream) |
protected void |
processAudioLogic(SoftAudioBuffer[] buffers) |
protected void |
processControlLogic() |
void |
setFramePosition(int frames) |
void |
setLoopPoints(int start,
int end) |
void |
setMicrosecondPosition(long microseconds) |
void |
start() |
void |
stop() |
addLineListener, calcVolume, getControl, getControls, getLineInfo, isControlSupported, removeLineListener, sendEvent
protected SoftMixingClip(SoftMixingMixer mixer, javax.sound.sampled.DataLine.Info info)
protected void processControlLogic()
processControlLogic
in class SoftMixingDataLine
protected void processAudioLogic(SoftAudioBuffer[] buffers)
processAudioLogic
in class SoftMixingDataLine
public int getFrameLength()
getFrameLength
in interface javax.sound.sampled.Clip
public long getMicrosecondLength()
getMicrosecondLength
in interface javax.sound.sampled.Clip
public void loop(int count)
loop
in interface javax.sound.sampled.Clip
public void open(javax.sound.sampled.AudioInputStream stream) throws javax.sound.sampled.LineUnavailableException, java.io.IOException
open
in interface javax.sound.sampled.Clip
javax.sound.sampled.LineUnavailableException
java.io.IOException
public void open(javax.sound.sampled.AudioFormat format, byte[] data, int offset, int bufferSize) throws javax.sound.sampled.LineUnavailableException
open
in interface javax.sound.sampled.Clip
javax.sound.sampled.LineUnavailableException
public void setFramePosition(int frames)
setFramePosition
in interface javax.sound.sampled.Clip
public void setLoopPoints(int start, int end)
setLoopPoints
in interface javax.sound.sampled.Clip
public void setMicrosecondPosition(long microseconds)
setMicrosecondPosition
in interface javax.sound.sampled.Clip
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
public void open() throws javax.sound.sampled.LineUnavailableException
open
in interface javax.sound.sampled.Line
javax.sound.sampled.LineUnavailableException