Package ipsk.audio.capture
Class CaptureHelperThread
- java.lang.Object
-
- java.lang.Thread
-
- ipsk.audio.capture.CaptureHelperThread
-
- All Implemented Interfaces:
java.lang.Runnable
public class CaptureHelperThread extends java.lang.Thread
Helper thread to read (capture) continuously from line. Capture data is discarded.- Author:
- klausj
-
-
Constructor Summary
Constructors Constructor Description CaptureHelperThread(javax.sound.sampled.AudioInputStream audioInputStream, int bufferSize)
Create helper capture thread
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close this capture helper thread.javax.sound.sampled.AudioInputStream
getAudioInputStream()
Get audio input streamvoid
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
-
-
-
-
Method Detail
-
getAudioInputStream
public javax.sound.sampled.AudioInputStream getAudioInputStream()
Get audio input stream- Returns:
- audio input stream
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classjava.lang.Thread
-
close
public void close()
Close this capture helper thread. Stops reading from audio stream, and blocks until thread is joined (finished).
-
-