java.applet
Interface AudioClip


public interface AudioClip

The AudioClip interface is a simple abstraction for playing a sound clip. Multiple AudioClip items can be playing at the same time, and the resulting sound is mixed together to produce a composite.

Since:
JDK1.0

Method Summary
 void loop sample code for java.applet.AudioClip.loop() definition code for java.applet.AudioClip.loop() ()
          Starts playing this audio clip in a loop.
 void play sample code for java.applet.AudioClip.play() definition code for java.applet.AudioClip.play() ()
          Starts playing this audio clip.
 void stop sample code for java.applet.AudioClip.stop() definition code for java.applet.AudioClip.stop() ()
          Stops playing this audio clip.
 

Method Detail

play sample code for java.applet.AudioClip.play() definition code for java.applet.AudioClip.play()

void play()
Starts playing this audio clip. Each time this method is called, the clip is restarted from the beginning.


loop sample code for java.applet.AudioClip.loop() definition code for java.applet.AudioClip.loop()

void loop()
Starts playing this audio clip in a loop.


stop sample code for java.applet.AudioClip.stop() definition code for java.applet.AudioClip.stop()

void stop()
Stops playing this audio clip.