|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Thread
ddf.minim.LineReader
LineReader reads audio from a TargetDataLine and puts it in a FloatSampleBuffer. It then passes this buffer to all of its listeners so that they can make a copy of the data. You will never need to use this class directly.
| Field Summary |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
LineReader(javax.sound.sampled.TargetDataLine tdl,
LineReaderListener readListener,
int bufferSize)
Constructs a LineReader that will read from tdl and then send
the samples to readListener, using a buffer of the requested size. |
|
| Method Summary | |
void |
finish()
Tell the thread to stop execution. |
void |
run()
Read loop for the TargetDataLine this is reading from. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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 |
| Constructor Detail |
public LineReader(javax.sound.sampled.TargetDataLine tdl,
LineReaderListener readListener,
int bufferSize)
tdl and then send
the samples to readListener, using a buffer of the requested size.
tdl - the TargetDataLine to read fromreadListener - the LineReaderListener to send samples tobufferSize - the buffer size to use| Method Detail |
public void finish()
public void run()
TargetDataLine this is reading from.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||