javax.sound.sampled
public interface SourceDataLine extends DataLine
Since: 1.3
Method Summary | |
---|---|
void | open(AudioFormat fmt)
Open the line, given the desired audio format. |
void | open(AudioFormat fmt, int size)
Open the line, given the desired audio format and the buffer size. |
int | write(byte[] buf, int offset, int length)
Write audio data to this line. |
Parameters: fmt the format to use
Throws: LineUnavailableException if the line is not available for some reason SecurityException if this is prevented by the security manager
Parameters: fmt the format to use size the buffer size
Throws: LineUnavailableException if the line is not available for some reason SecurityException if this is prevented by the security manager
Parameters: buf a byte array of audio data offset index of the first byte in the array to use length the number of bytes to write
Returns: the number of bytes written