|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.valhalla.jbother.sound.SoundPlayer
public class SoundPlayer
Plays sounds with different methods. Available methods are: with Java Sound System, a system command, or a pc speaker beep
| Field Summary | |
|---|---|
protected static javax.swing.Timer |
timer
|
| Method Summary | |
|---|---|
static java.lang.String |
loadDefault(java.lang.String settingName)
Loads a default sound from the running jar file and puts it into a cache |
protected void |
nullIt()
Set the "running" state to false |
static void |
play(java.lang.String settingName)
Plays a sound using the method in the settings |
static boolean |
playSoundFile(java.lang.String file,
java.lang.String method,
java.lang.String soundCommand)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static javax.swing.Timer timer
| Method Detail |
|---|
public static void play(java.lang.String settingName)
settingName - the setting name to play
public static boolean playSoundFile(java.lang.String file,
java.lang.String method,
java.lang.String soundCommand)
protected void nullIt()
public static java.lang.String loadDefault(java.lang.String settingName)
settingName - the setting to load
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||