public class DecoderThread
extends java.lang.Thread
Modifier and Type | Field and Description |
---|---|
private int |
channel |
protected static java.util.LinkedHashMap<java.io.File,DecoderThread> |
currentlyDecoding
Static data structure not to decode a file twice at the same time.
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 PlaybackThread |
playbackThread |
private boolean |
stats |
Constructor and Description |
---|
DecoderThread(PlaybackThread playbackThread,
java.io.File encodedFile,
int channel,
boolean stats,
java.lang.String decodedOutputDir,
java.lang.String decodedSuffix) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getDecodedFileName(java.io.File encodedFile,
java.lang.String decodedOutputDir,
java.lang.String decodedSuffix) |
java.io.File |
getEncodedFile() |
java.io.File |
getPcmFile() |
void |
run() |
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
protected static java.util.LinkedHashMap<java.io.File,DecoderThread> currentlyDecoding
private java.io.File encodedFile
private java.io.File pcmFile
private int channel
private boolean stats
private PlaybackThread playbackThread
public DecoderThread(PlaybackThread playbackThread, java.io.File encodedFile, int channel, boolean stats, java.lang.String decodedOutputDir, java.lang.String decodedSuffix) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public static java.lang.String getDecodedFileName(java.io.File encodedFile, java.lang.String decodedOutputDir, java.lang.String decodedSuffix)
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()