Data lines are used for output of audio by means of the subinterfaces SourceDataLine or Clip , which allow an application program to write data. Similarly, audio input is handled by the subinterface TargetDataLine , which allows data to be read. A data line has an internal buffer in which the incoming or outgoing audio data is queued. These events can be generated in response to specific requests, or as a result of less direct state changes. Or, if the flow of data to an active data line is constricted so that a gap occurs in the presentation of data, a STOP event is generated.
Mixers often support synchronized control of multiple data lines.
Synchronization can be established through the Mixer interface's synchronize method. See the description of the Mixer interface for a more complete description. Besides the class information inherited from its superclass, DataLine. Info provides additional information specific to data lines. Inner classes inherited from class javax.sound.sampled.