public class SoundHandler.SoundThread extends Thread
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
File |
file |
boolean |
muted |
int |
repeatTime |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
SoundThread(File file,
int repeatTime) |
SoundThread(InputStream stream,
int repeatTime) |
| Modifier and Type | Method and Description |
|---|---|
void |
end() |
void |
mute() |
void |
play() |
void |
run() |
void |
unmute() |
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, yieldpublic File file
public int repeatTime
public boolean muted
public SoundThread(File file, int repeatTime) throws UnsupportedAudioFileException, IOException
public SoundThread(InputStream stream, int repeatTime) throws UnsupportedAudioFileException, IOException
public void play()
throws LineUnavailableException,
IOException
LineUnavailableExceptionIOExceptionpublic void end()
public void mute()
public void unmute()
Copyright © 2022. All rights reserved.