Package net.sourceforge.jnlp.runtime
Class AppletAudioClip
- java.lang.Object
-
- net.sourceforge.jnlp.runtime.AppletAudioClip
-
- All Implemented Interfaces:
java.applet.AudioClip
public class AppletAudioClip extends java.lang.Object implements java.applet.AudioClip
An applet audio clip using the javax.sound API.
-
-
Constructor Summary
Constructors Constructor Description AppletAudioClip(java.net.URL location)
Creates new AudioClip.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
loop
public void loop()
Plays the clip in a continuous loop until the stop method is called.- Specified by:
loop
in interfacejava.applet.AudioClip
-
play
public void play()
Plays the clip from the beginning.- Specified by:
play
in interfacejava.applet.AudioClip
-
stop
public void stop()
Stops playing the clip.- Specified by:
stop
in interfacejava.applet.AudioClip
-
-