public class StreamingThread
extends java.lang.Thread
Constructor and Description |
---|
StreamingThread(AudioInputStream inputStream,
AudioOutputStream outputStream) |
Modifier and Type | Method and Description |
---|---|
int |
getFramesPerBuffer() |
int |
getSamplesPerFrame() |
TransportModel |
getTransportModel() |
void |
requestStop() |
void |
run() |
void |
setFramesPerBuffer(int framesPerBuffer)
Only call this before the thread has started.
|
void |
setMaxFrames(long maxFrames) |
void |
setSamplesPerFrame(int samplesPerFrame) |
void |
setTransportModel(TransportModel transportModel) |
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
public StreamingThread(AudioInputStream inputStream, AudioOutputStream outputStream)
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public int getFramesPerBuffer()
public void setFramesPerBuffer(int framesPerBuffer)
framesPerBuffer
- public void requestStop()
public TransportModel getTransportModel()
public void setTransportModel(TransportModel transportModel)
public void setMaxFrames(long maxFrames)
maxFrames
- public int getSamplesPerFrame()
public void setSamplesPerFrame(int samplesPerFrame)