API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.sound.sampled. DataLine View Source
Author(s)
Kara Kytle
Since
1.3
Version
1.34, 05/11/17
Serial
Hierarchy
 Line
      DataLine
Subinterfaces
Description
public interface DataLine
  DataLine adds media-related functionality to its superinterface, Line.
See also:    LineEvent
Methods
Hide/Show inherited methods
public int available ()
  Obtains the number of bytes of data currently available to the application for processing in the data line's internal buffer.
public void drain ()
  Drains queued data from the line by continuing data I/O until the data line's internal buffer has been emptied.
public void flush ()
  Flushes queued data from the line.
public int getBufferSize ()
  Obtains the maximum number of bytes of data that will fit in the data line's internal buffer.
public AudioFormat getFormat ()
  Obtains the current format (encoding, sample rate, number of channels, etc.) of the data line's audio data.
public int getFramePosition ()
  Obtains the current position in the audio data, in sample frames.
public float getLevel ()
  Obtains the current volume level for the line.
public long getLongFramePosition ()
  Obtains the current position in the audio data, in sample frames.
public long getMicrosecondPosition ()
  Obtains the current position in the audio data, in microseconds.
public boolean isActive ()
  Indicates whether the line is engaging in active I/O (such as playback or capture).
public boolean isRunning ()
  Indicates whether the line is running.
public void start ()
  Allows a line to engage in data I/O.
public void stop ()
  Stops the line.
Fields
Hide/Show inherited fields
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar