Package ipsk.audio.impl.j2audio
Class FileWriterThread
- java.lang.Object
-
- java.lang.Thread
-
- ipsk.audio.impl.j2audio.FileWriterThread
-
- All Implemented Interfaces:
java.lang.Runnable
public class FileWriterThread extends java.lang.Thread
Audio file writer in an own thread.- Author:
- K.Jaensch, klausj@phonetik.uni-muenchen.de
-
-
Constructor Summary
Constructors Constructor Description FileWriterThread(FileWriterListener listener, javax.sound.sampled.AudioInputStream ais, javax.sound.sampled.AudioFileFormat.Type aff, java.io.File outFile)
Create new file writer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
create()
java.lang.Exception
getException()
void
run()
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
-
-
-
-
Field Detail
-
IDLE
public static final int IDLE
- See Also:
- Constant Field Values
-
WRITING
public static final int WRITING
- See Also:
- Constant Field Values
-
DONE
public static final int DONE
- See Also:
- Constant Field Values
-
ERROR
public static final int ERROR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FileWriterThread
public FileWriterThread(FileWriterListener listener, javax.sound.sampled.AudioInputStream ais, javax.sound.sampled.AudioFileFormat.Type aff, java.io.File outFile)
Create new file writer.- Parameters:
listener
- notified on eventsais
- the audio stream to read fromaff
- the audio file formatoutFile
- the audio file to write to
-
-