|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataLine
The DataLine interface adds data-related functionality to the Line interface. For example, it adds methods to start and stop the data on the line.
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. |
Methods inherited from interface javax.sound.sampled.Line |
---|
addLineListener, close, getControl, getControls, getLineInfo, isControlSupported, isOpen, open, removeLineListener |
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |