at.tuwien.ifs.somtoolbox.audio
Class DecoderThread
java.lang.Object
java.lang.Thread
at.tuwien.ifs.somtoolbox.audio.DecoderThread
- All Implemented Interfaces:
- Runnable
public class DecoderThread
- extends Thread
- Version:
- $Id: DecoderThread.java 3583 2010-05-21 10:07:41Z mayer $
- Author:
- Ewald Peiszer
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 |
currentlyDecoding
protected static LinkedHashMap<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.
encodedFile
private File encodedFile
pcmFile
private File pcmFile
channel
private int channel
stats
private boolean stats
playbackThread
private PlaybackThread playbackThread
DecoderThread
public DecoderThread(PlaybackThread playbackThread,
File encodedFile,
int channel,
boolean stats,
String decodedOutputDir,
String decodedSuffix)
throws FileNotFoundException
- Throws:
FileNotFoundException
getDecodedFileName
public static String getDecodedFileName(File encodedFile,
String decodedOutputDir,
String decodedSuffix)
run
public void run()
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread
getPcmFile
public File getPcmFile()
getEncodedFile
public File getEncodedFile()