public interface TargetDataLine extends DataLine
DataLine.Info| Modifier and Type | Method and Description |
|---|---|
void |
open(AudioFormat fmt)
Open the line using the indicated audio format.
|
void |
open(AudioFormat fmt,
int size)
Open the line using the indicated audio format and buffer size.
|
int |
read(byte[] buf,
int offset,
int length)
Read data from the line into the given buffer.
|
available, drain, flush, getBufferSize, getFormat, getFramePosition, getLevel, getLongFramePosition, getMicrosecondPosition, isActive, isRunning, start, stopaddLineListener, close, getControl, getControls, getLineInfo, isControlSupported, isOpen, open, removeLineListenervoid open(AudioFormat fmt) throws LineUnavailableException
fmt - the format to useLineUnavailableException - if the line is not available for
some reasonSecurityException - if this operation is prevented by the
security managervoid open(AudioFormat fmt, int size) throws LineUnavailableException
fmt - the format to useLineUnavailableException - if the line is not available for
some reasonSecurityException - if this operation is prevented by the
security managerint read(byte[] buf, int offset, int length)
buf - the buffer into which the data is putoffset - the initial offset at which to writelength - the maximum number of bytes to read