javax.sound.sampled
public interface TargetDataLine extends DataLine
Since: 1.3
Method Summary | |
---|---|
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. |
Parameters: fmt the format to use
Throws: LineUnavailableException if the line is not available for some reason SecurityException if this operation is prevented by the security manager
Parameters: fmt the format to use
Throws: LineUnavailableException if the line is not available for some reason SecurityException if this operation is prevented by the security manager
Parameters: buf the buffer into which the data is put offset the initial offset at which to write length the maximum number of bytes to read
Returns: the actual number of bytes read