javax.sound.sampled
Interface SourceDataLine
- All Superinterfaces:
- DataLine, Line
- All Known Implementing Classes:
- AlsaSourceDataLine, EsdSourceDataLine
public interface SourceDataLine
- extends DataLine
Method Summary |
void |
open(AudioFormat audioFormat)
|
void |
open(AudioFormat audioFormat,
int nBufferSize)
|
int |
write(byte[] abData,
int nOffset,
int nLength)
Write data to the line. |
Methods inherited from interface javax.sound.sampled.DataLine |
available, drain, flush, getBufferSize, getFormat, getFramePosition, getLevel, getMicrosecondPosition, isActive, isRunning, start, stop |
open
void open(AudioFormat audioFormat,
int nBufferSize)
throws LineUnavailableException
- Throws:
LineUnavailableException
open
void open(AudioFormat audioFormat)
throws LineUnavailableException
- Throws:
LineUnavailableException
write
int write(byte[] abData,
int nOffset,
int nLength)
- Write data to the line.
- Parameters:
abData
- The buffer to use.nOffset
- nLength
- The length of the data that should be written,
in bytes. Can be less that the length of abData.
- Returns:
- The number of bytes written. May be less than nLength.