java.applet
Class Applet.URLAudioClip

java.lang.Object
java.applet.Applet.URLAudioClip
- All Implemented Interfaces:
- AudioClip
- Enclosing class:
- Applet
- private static class Applet.URLAudioClip
- extends java.lang.Object
- implements AudioClip
|
Method Summary |
private javax.sound.sampled.Clip |
getClip()
|
void |
loop()
Plays this audio clip in a continuous loop. |
void |
play()
Plays the audio clip starting from the beginning. |
void |
stop()
Stops playing this audio clip. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
url
private java.net.URL url
clip
private javax.sound.sampled.Clip clip
Applet.URLAudioClip
public Applet.URLAudioClip(java.net.URL url)
getClip
private javax.sound.sampled.Clip getClip()
loop
public void loop()
- Description copied from interface:
AudioClip
- Plays this audio clip in a continuous loop.
- Specified by:
loop in interface AudioClip
play
public void play()
- Description copied from interface:
AudioClip
- Plays the audio clip starting from the beginning.
- Specified by:
play in interface AudioClip
stop
public void stop()
- Description copied from interface:
AudioClip
- Stops playing this audio clip. There is no mechanism for restarting
at the point where the clip is stopped.
- Specified by:
stop in interface AudioClip