javax.sound.sampled
Interface SourceDataLine

All Superinterfaces:
DataLine, Line
All Known Implementing Classes:
AlsaSourceDataLine, EsdSourceDataLine

public interface SourceDataLine
extends DataLine


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.sound.sampled.DataLine
DataLine.Info
 
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
 
Methods inherited from interface javax.sound.sampled.Line
addLineListener, close, getControl, getControls, getLineInfo, isControlSupported, isOpen, open, removeLineListener
 

Method Detail

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.