Clip
Interface Clip
- All Superinterfaces:
- AutoCloseable, DataLine, Line
public interface Clip extends DataLine
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.
Because the data is pre-loaded and has a known length, you can set a clip to start playing at any position in its audio data. You can also create a loop, so that when the clip is played it will cycle repeatedly. Loops are specified with a starting and ending sample frame, along with the number of times that the loop should be played.
Clips may be obtained from a Mi