|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AudioRecorder
An AudioRecorder allows to record input from an audio device. It has a sampling rate and is either stereo or mono. Samples are
returned in signed 16-bit PCM format. Stereo samples are interleaved in the order left channel, right channel. The
AudioRecorder has to be disposed if no longer needed via the dispose()
.
Method Summary | |
---|---|
void |
dispose()
Disposes the AudioRecorder |
void |
read(short[] samples,
int offset,
int numSamples)
Reads in numSamples samples into the array samples starting at offset. |
Method Detail |
---|
void read(short[] samples, int offset, int numSamples)
samples
- the array to write the samples tooffset
- the offset into the arraynumSamples
- the number of samples to be readvoid dispose()
dispose
in interface Disposable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |