public class AlsaSourceDataLine extends AlsaBaseDataLine implements SourceDataLine
| Modifier and Type | Class and Description |
|---|---|
class |
AlsaSourceDataLine.AlsaSourceDataLineGainControl |
AlsaBaseDataLine.AlsaBaseDataLineGainControlDataLine.Info| Constructor and Description |
|---|
AlsaSourceDataLine(AlsaDataLineMixer mixer,
AudioFormat format,
int nBufferSize) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
drain() |
void |
flush() |
int |
write(byte[] abData,
int nOffset,
int nLength)
Write data to the line.
|
open, opengetBufferSize, getFormat, getFramePosition, getLevel, getLongFramePosition, getMicrosecondPosition, isActive, isRunning, start, stopaddLineListener, close, getControl, getControls, getLineInfo, isControlSupported, isOpen, open, removeLineListenerequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitopen, opengetBufferSize, getFormat, getFramePosition, getLevel, getMicrosecondPosition, isActive, isRunning, start, stopaddLineListener, close, getControl, getControls, getLineInfo, isControlSupported, isOpen, open, removeLineListenerpublic AlsaSourceDataLine(AlsaDataLineMixer mixer, AudioFormat format, int nBufferSize) throws LineUnavailableException
LineUnavailableExceptionpublic int available()
available in interface DataLineavailable in class AlsaBaseDataLinepublic int write(byte[] abData,
int nOffset,
int nLength)
SourceDataLinewrite in interface SourceDataLineabData - The buffer to use.nLength - The length of the data that should be written,
in bytes. Can be less that the length of abData.public void drain()
drain in interface DataLinedrain in class AlsaBaseDataLinepublic void flush()
flush in interface DataLineflush in class AlsaBaseDataLine