public class WaveRecorder
extends java.lang.Object
Constructor and Description |
---|
WaveRecorder(Synthesizer synth,
java.io.File outputFile)
Create a stereo 16-bit recorder.
|
WaveRecorder(Synthesizer synth,
java.io.File outputFile,
int samplesPerFrame) |
WaveRecorder(Synthesizer synth,
java.io.File outputFile,
int samplesPerFrame,
int bitsPerSample) |
Modifier and Type | Method and Description |
---|---|
void |
addTransportListener(TransportListener listener) |
void |
close()
Close and disconnect any connected inputs.
|
UnitInputPort |
getInput() |
void |
removeTransportListener(TransportListener listener) |
void |
setMaxRecordingTime(double maxRecordingTime) |
void |
start() |
void |
stop() |
public WaveRecorder(Synthesizer synth, java.io.File outputFile) throws java.io.FileNotFoundException
synth
- outputFile
- java.io.FileNotFoundException
public WaveRecorder(Synthesizer synth, java.io.File outputFile, int samplesPerFrame) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public WaveRecorder(Synthesizer synth, java.io.File outputFile, int samplesPerFrame, int bitsPerSample) throws java.io.FileNotFoundException
synth
- outputFile
- samplesPerFrame
- 1 for mono, 2 for stereobitsPerSample
- 16 or 24java.io.FileNotFoundException
public UnitInputPort getInput()
public void start()
public void stop()
public void close() throws java.io.IOException
java.io.IOException
public void addTransportListener(TransportListener listener)
public void removeTransportListener(TransportListener listener)
public void setMaxRecordingTime(double maxRecordingTime)