|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
at.tuwien.ifs.somtoolbox.apps.viewer.controls.multichannelPlayback.DecoderThread
public class DecoderThread
(Based on AudioDecoder.java from jsresources.org)
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
private int |
channel
|
private java.io.File |
encodedFile
|
protected static java.util.LinkedHashMap<java.io.File,DecoderThread> |
lhmCurrentlyDecoding
Static data structure not to decode a file twice at the same time |
private PlaybackThread |
nt
|
private java.io.File |
pcmFile
|
private boolean |
stats
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
DecoderThread(PlaybackThread nt,
java.io.File encF,
int channel,
boolean stats)
|
Method Summary | |
---|---|
static java.lang.String |
getDecodedFileName(java.io.File encF)
|
java.io.File |
getEncodedFile()
|
java.io.File |
getPcmFile()
|
void |
run()
|
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, 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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static java.util.LinkedHashMap<java.io.File,DecoderThread> lhmCurrentlyDecoding
That means that all files that are currently being decoded have been put into the structure together with the DecoderThread as the value.
private java.io.File encodedFile
private java.io.File pcmFile
private int channel
private boolean stats
private PlaybackThread nt
Constructor Detail |
---|
public DecoderThread(PlaybackThread nt, java.io.File encF, int channel, boolean stats) throws java.io.FileNotFoundException
java.io.FileNotFoundException
Method Detail |
---|
public static java.lang.String getDecodedFileName(java.io.File encF)
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public java.io.File getPcmFile()
public java.io.File getEncodedFile()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |