public class TimedAudioRecorder extends Thread
SimpleAudioRecorder: Recording to an audio file (simple version)
Purpose: Records audio data and stores it in a file. The data is recorded in CD quality (44.1 kHz, 16 bit linear, stereo) and stored in a .wav file.
Usage: java SimpleAudioRecorder choice="plain" -h; java SimpleAudioRecorder choice="plain" audiofile
Parameters:
Bugs, limitations: You cannot select audio formats and the audio file type on the command line. See AudioRecorder for a version that has more advanced options. Due to a bug in the Sun jdk1.3/1.4, this program does not work with it.
Source code: SimpleAudioRecorder.java
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
TimedAudioRecorder(TargetDataLine line,
AudioFileFormat.Type targetType,
File file,
long timeout) |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
void |
run()
Main working method.
|
void |
start()
Starts the recording.
|
void |
stopRecording()
Stops the recording.
|
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, stop, stop, suspend, toString, yield
public TimedAudioRecorder(TargetDataLine line, AudioFileFormat.Type targetType, File file, long timeout)
public void start()
public void stopRecording()
public void run()
public static void main(String[] args)
Copyright © 2000–2016 DFKI GmbH. All rights reserved.