public class RawRecorder
extends java.lang.Object
Constructor and Description |
---|
RawRecorder(javax.sound.sampled.AudioFormat audioFormat)
Create a new RawRecorder.
|
Modifier and Type | Method and Description |
---|---|
void |
start()
Start recording.
|
short[] |
stop()
Stop recording and give us the clip.
|
public RawRecorder(javax.sound.sampled.AudioFormat audioFormat) throws javax.sound.sampled.LineUnavailableException
audioFormat
- the desired outputjavax.sound.sampled.LineUnavailableException
- if the audioFormat is not supported