API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.sound.sampled. Clip View Source
Author(s)
Kara Kytle
Since
1.3
Version
1.39, 05/11/17
Serial
Hierarchy
 Line
      DataLine
          Clip
Subinterfaces
Description
public interface Clip
  The Clip interface represents a special kind of data line whose audio data can be loaded prior to playback, instead of being streamed in real time.
See also:   
Methods
Hide/Show inherited methods
public int getFrameLength ()
  Obtains the media length in sample frames.
public long getMicrosecondLength ()
  Obtains the media duration in microseconds
public void loop (int count)
  Starts looping playback from the current position.
public void open (AudioFormat format, byte[] data, int offset, int bufferSize) throws LineUnavailableException
  Opens the clip, meaning that it should acquire any required system resources and become operational.
public void open (AudioInputStream stream) throws LineUnavailableException IOException
  Opens the clip with the format and audio data present in the provided audio input stream.
public void setFramePosition (int frames)
  Sets the media position in sample frames.
public void setLoopPoints (int start, int end)
  Sets the first and last sample frames that will be played in the loop.
public void setMicrosecondPosition (long microseconds)
  Sets the media position in microseconds.
Fields
Hide/Show inherited fields
publicfinalstatic int LOOP_CONTINUOUSLY = "-1"
  A value indicating that looping should continue indefinitely rather than complete after a specific number of loops.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar