public interface SourceDataLine extends DataLine
DataLine.Info
Modifier and Type | Method and Description |
---|---|
void |
open(AudioFormat audioFormat) |
void |
open(AudioFormat audioFormat,
int nBufferSize) |
int |
write(byte[] abData,
int nOffset,
int nLength)
Write data to the line.
|
available, drain, flush, getBufferSize, getFormat, getFramePosition, getLevel, getMicrosecondPosition, isActive, isRunning, start, stop
addLineListener, close, getControl, getControls, getLineInfo, isControlSupported, isOpen, open, removeLineListener
void open(AudioFormat audioFormat, int nBufferSize) throws LineUnavailableException
LineUnavailableException
void open(AudioFormat audioFormat) throws LineUnavailableException
LineUnavailableException
int write(byte[] abData, int nOffset, int nLength)
abData
- The buffer to use.nOffset
- nLength
- The length of the data that should be written,
in bytes. Can be less that the length of abData.