public class AlsaSourceDataLine extends AlsaBaseDataLine implements SourceDataLine
Modifier and Type | Class and Description |
---|---|
class |
AlsaSourceDataLine.AlsaSourceDataLineGainControl |
AlsaBaseDataLine.AlsaBaseDataLineGainControl
DataLine.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, open
getBufferSize, getFormat, getFramePosition, getLevel, getLongFramePosition, getMicrosecondPosition, isActive, isRunning, start, stop
addLineListener, close, getControl, getControls, getLineInfo, isControlSupported, isOpen, open, removeLineListener
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
open, open
getBufferSize, getFormat, getFramePosition, getLevel, getMicrosecondPosition, isActive, isRunning, start, stop
addLineListener, close, getControl, getControls, getLineInfo, isControlSupported, isOpen, open, removeLineListener
public AlsaSourceDataLine(AlsaDataLineMixer mixer, AudioFormat format, int nBufferSize) throws LineUnavailableException
LineUnavailableException
public int available()
available
in interface DataLine
available
in class AlsaBaseDataLine
public int write(byte[] abData, int nOffset, int nLength)
SourceDataLine
write
in interface SourceDataLine
abData
- 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 DataLine
drain
in class AlsaBaseDataLine
public void flush()
flush
in interface DataLine
flush
in class AlsaBaseDataLine