|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.tritonus.share.sampled.mixer.TLine
org.tritonus.share.sampled.mixer.TDataLine
org.tritonus.share.sampled.mixer.TBaseDataLine
org.tritonus.sampled.mixer.alsa.AlsaBaseDataLine
org.tritonus.sampled.mixer.alsa.AlsaSourceDataLine
public class AlsaSourceDataLine
| Nested Class Summary | |
|---|---|
class |
AlsaSourceDataLine.AlsaSourceDataLineGainControl
|
| Nested classes/interfaces inherited from class org.tritonus.sampled.mixer.alsa.AlsaBaseDataLine |
|---|
AlsaBaseDataLine.AlsaBaseDataLineGainControl |
| Nested classes/interfaces inherited from interface javax.sound.sampled.DataLine |
|---|
DataLine.Info |
| Constructor Summary | |
|---|---|
AlsaSourceDataLine(AlsaDataLineMixer mixer,
AudioFormat format,
int nBufferSize)
|
|
| Method Summary | |
|---|---|
int |
available()
|
void |
drain()
|
void |
flush()
|
int |
write(byte[] abData,
int nOffset,
int nLength)
Write data to the line. |
| Methods inherited from class org.tritonus.share.sampled.mixer.TBaseDataLine |
|---|
open, open |
| Methods inherited from class org.tritonus.share.sampled.mixer.TDataLine |
|---|
getBufferSize, getFormat, getFramePosition, getLevel, getLongFramePosition, getMicrosecondPosition, isActive, isRunning, start, stop |
| Methods inherited from class org.tritonus.share.sampled.mixer.TLine |
|---|
addLineListener, close, getControl, getControls, getLineInfo, isControlSupported, isOpen, open, removeLineListener |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.sound.sampled.SourceDataLine |
|---|
open, open |
| Methods inherited from interface javax.sound.sampled.DataLine |
|---|
getBufferSize, getFormat, getFramePosition, getLevel, getMicrosecondPosition, isActive, isRunning, start, stop |
| Methods inherited from interface javax.sound.sampled.Line |
|---|
addLineListener, close, getControl, getControls, getLineInfo, isControlSupported, isOpen, open, removeLineListener |
| Constructor Detail |
|---|
public AlsaSourceDataLine(AlsaDataLineMixer mixer,
AudioFormat format,
int nBufferSize)
throws LineUnavailableException
LineUnavailableException| Method Detail |
|---|
public int available()
available in interface DataLineavailable in class AlsaBaseDataLine
public int write(byte[] abData,
int nOffset,
int nLength)
SourceDataLine
write 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||