public interface DataLine extends Line
Modifier and Type | Interface and Description |
---|---|
static class |
DataLine.Info
This class extends Line.Info with information specific to DataLine.
|
Modifier and Type | Method and Description |
---|---|
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.
|
addLineListener, close, getControl, getControls, getLineInfo, isControlSupported, isOpen, open, removeLineListener
int available()
void drain()
void flush()
int getBufferSize()
AudioFormat getFormat()
int getFramePosition()
float getLevel()
long getLongFramePosition()
long getMicrosecondPosition()
boolean isActive()
boolean isRunning()
void start()
void stop()