|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbin.ThreadedRecorder
public class ThreadedRecorder
Constructor Summary | |
---|---|
ThreadedRecorder(AudioCapture source)
Create a new ThreadedRecorder using an initialized AudioCapture object. |
Method Summary | |
---|---|
boolean |
isPaused()
|
boolean |
isRecording()
|
static void |
main(java.lang.String[] args)
|
void |
pause()
(un)pause the recording; on pause, the recording continues, but is not saved to the file. |
void |
run()
Internal thread function, takes care of the actual recording |
java.io.OutputStream |
start(java.lang.String fileName)
Start the recording and save to the given file. |
void |
stop()
Stop the recording |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThreadedRecorder(AudioCapture source)
source
- Method Detail |
---|
public boolean isPaused()
public boolean isRecording()
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
public void pause()
public void run()
run
in interface java.lang.Runnable
public java.io.OutputStream start(java.lang.String fileName) throws java.io.IOException
fileName
- absolute path to target file; if null, a ByteArrayOutputStream is used.
java.io.IOException
public void stop()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |