public class AppletAudioClip
extends java.lang.Object
implements java.applet.AudioClip
Constructor and Description |
---|
AppletAudioClip(java.net.URL location)
Creates new AudioClip.
|
Modifier and Type | Method and Description |
---|---|
void |
loop()
Plays the clip in a continuous loop until the stop method is
called.
|
void |
play()
Plays the clip from the beginning.
|
void |
stop()
Stops playing the clip.
|
public AppletAudioClip(java.net.URL location)
location
- the clip locationpublic void loop()
loop
in interface java.applet.AudioClip
public void play()
play
in interface java.applet.AudioClip
public void stop()
stop
in interface java.applet.AudioClip