javax.sound.sampled
public interface DataLine extends Line
Since: 1.3
Nested Class Summary | |
---|---|
static class | DataLine.Info
This class extends Line.Info with information specific to DataLine.
|
Method Summary | |
---|---|
int | available()
Return the number of bytes currently available on this DataLine. |
void | drain()
This method blocks until whatever data is buffered in the
DataLine's internal buffer has been drained. |
void | flush()
This flushes the DataLine by discarding any buffered data. |
int | getBufferSize()
Returns the size of the DataLine's internal buffer, in bytes. |
AudioFormat | getFormat()
Return the current format of the data associated with this DataLine. |
int | getFramePosition()
Return the current frame position. |
float | getLevel()
Return the volume level for this DataLine. |
long | getLongFramePosition()
Return the current frame position. |
long | getMicrosecondPosition()
Return the number of microseconds this DataLine has been playing. |
boolean | isActive()
Return true if this line is active, meaning that it is actively
performing audio I/O. |
boolean | isRunning()
Return true if this line is running, meaning that it has been
started. |
void | start()
Start processing data. |
void | stop()
Stop processing data. |
Since: 1.5