Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.applet
Class Applet.URLAudioClip  view Applet.URLAudioClip download Applet.URLAudioClip.java

java.lang.Object
  extended byjava.applet.Applet.URLAudioClip
All Implemented Interfaces:
AudioClip
Enclosing class:
Applet

private static class Applet.URLAudioClip
extends java.lang.Object
implements AudioClip


Field Summary
private  javax.sound.sampled.Clip clip
           
private  java.net.URL url
           
 
Constructor Summary
Applet.URLAudioClip(java.net.URL url)
           
 
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
 

Field Detail

url

private java.net.URL url

clip

private javax.sound.sampled.Clip clip
Constructor Detail

Applet.URLAudioClip

public Applet.URLAudioClip(java.net.URL url)
Method Detail

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