Continuously Playing a Sampled Audio File Only DataLine objects that are of type Clip can be repeated. See the ``Loading and Playing Sampled Audio'' examplet to create a clip. // Loop forever. clip.loop(Clip.LOOP_CONTINUOUSLY); // Loop for a certain number of times. clip.loop(3); // Start playing. clip.start();