|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.petterroea.starterkit.Sound
public class Sound
Sound Used to load and play a sound
| Field Summary | |
|---|---|
private javax.sound.sampled.Clip |
clip
Sound object |
static boolean |
isSoundActivated
True if sound is supported |
| Constructor Summary | |
|---|---|
Sound(java.lang.String name,
boolean inJar)
Constructor for "Sound |
|
| Method Summary | |
|---|---|
void |
play()
Plays the sound |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private javax.sound.sampled.Clip clip
public static boolean isSoundActivated
| Constructor Detail |
|---|
public Sound(java.lang.String name,
boolean inJar)
name - Filename of the sound fileinJar - True if the sound file is in the jar-file| Method Detail |
|---|
public void play()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||