|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.kolls.railworld.Sound
net.kolls.railworld.sound.AppletSound
public class AppletSound
Provides sound via the applet sound API.
| Field Summary |
|---|
| Fields inherited from class net.kolls.railworld.Sound |
|---|
frozen, fzlc, loopcnt |
| Constructor Summary | |
|---|---|
AppletSound(java.net.URL filen)
Create an applet sound based on the given sound resource |
|
| Method Summary | |
|---|---|
boolean |
canPlay()
Is the sound loaded and ready to play? |
void |
loop()
Loop the sound. |
void |
play()
Play the sound. |
boolean |
playing()
Indicate if the sound is currently playing or looping. |
void |
stop()
Stop the sound. |
| Methods inherited from class net.kolls.railworld.Sound |
|---|
freeze, unfreeze |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AppletSound(java.net.URL filen)
filen - URL of sound to load| Method Detail |
|---|
public boolean canPlay()
Sound
canPlay in class Soundtrue if the sound can be played.public void loop()
Sound
loop in class Soundpublic void play()
Sound
play in class Soundpublic boolean playing()
Sound
playing in class Soundtrue if the sound is playing.public void stop()
Sound
stop in class Sound
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||