|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
net.sf.freecol.client.gui.sound.SoundPlayer.SoundPlayerThread
private class SoundPlayer.SoundPlayerThread
Thread for playing sound files.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
private boolean |
playDone
|
private java.util.List<java.io.File> |
playList
|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
SoundPlayer.SoundPlayerThread()
|
|
| Method Summary | |
|---|---|
void |
add(java.io.File file)
|
private void |
awaken()
|
private void |
goToSleep()
|
boolean |
keepPlaying()
|
private javax.sound.sampled.SourceDataLine |
openLine(javax.sound.sampled.AudioFormat audioFormat)
|
private boolean |
playSound(java.io.File file)
|
private void |
rawplay(javax.sound.sampled.AudioInputStream din,
javax.sound.sampled.SourceDataLine lin)
|
void |
run()
|
private void |
setVolume(javax.sound.sampled.SourceDataLine line,
int vol)
|
private void |
sleep(int t)
|
void |
startPlaying()
|
void |
stopPlaying()
|
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final java.util.List<java.io.File> playList
private boolean playDone
| Constructor Detail |
|---|
public SoundPlayer.SoundPlayerThread()
| Method Detail |
|---|
private void awaken()
private void goToSleep()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic boolean keepPlaying()
public void startPlaying()
public void stopPlaying()
public void add(java.io.File file)
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadprivate void sleep(int t)
private void setVolume(javax.sound.sampled.SourceDataLine line,
int vol)
private javax.sound.sampled.SourceDataLine openLine(javax.sound.sampled.AudioFormat audioFormat)
private boolean playSound(java.io.File file)
private void rawplay(javax.sound.sampled.AudioInputStream din,
javax.sound.sampled.SourceDataLine lin)
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||