Example usage for Java javax.sound.sampled SourceDataLine fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addLineListener(LineListener listener) Adds a listener to this line. |
void | close() Closes the line, indicating that any system resources in use by the line can be released. |
void | drain() Drains queued data from the line by continuing data I/O until the data line's internal buffer has been emptied. |
int | getBufferSize() Obtains the maximum number of bytes of data that will fit in the data line's internal buffer. |
AudioFormat | getFormat() Obtains the current format (encoding, sample rate, number of channels, etc.) of the data line's audio data. |
boolean | isOpen() Indicates whether the line is open, meaning that it has reserved system resources and is operational, although it might not currently be playing or capturing sound. |
boolean | isRunning() Indicates whether the line is running. |
void | open(AudioFormat format) Opens the line with the specified format, causing the line to acquire any required system resources and become operational. |
void | open(AudioFormat format, int bufferSize) Opens the line with the specified format and suggested buffer size, causing the line to acquire any required system resources and become operational. |
void | start() Allows a line to engage in data I/O. |
void | stop() Stops the line. |
int | write(byte[] b, int off, int len) Writes audio data to the mixer via this source data line. |